From 36533495e7b40ad8cdbdee72af343fa1101b0b45 Mon Sep 17 00:00:00 2001 From: starnakin Date: Sat, 20 May 2023 19:17:43 +0200 Subject: [PATCH] fix: remove useless import --- player.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/player.py b/player.py index ca37ca2..77f26bc 100644 --- a/player.py +++ b/player.py @@ -1,5 +1,5 @@ -from simple_term_menu import TerminalMenu from database import Database +import menu from time import sleep import os, subprocess @@ -7,8 +7,7 @@ def _play(url: str, database: Database): start_pos = 0 viewing_data = database.get_viewing_data(url) if (viewing_data != None): - menu = TerminalMenu([f"go back to {str(viewing_data.get('last_pos'))}", "restart from 0:00"]) - response = menu.show() + response = menu.start_pos([f"go back to {str(viewing_data.get('last_pos'))}", "restart from 0:00"]) if (response == None): return (1); elif (response == 0):