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):