music player fixes

This commit is contained in:
Rudis Muiznieks 2022-12-28 10:32:07 -06:00
parent 10f7213658
commit 558d0a275b
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ from .player import MusicPlayer
def execute(cinput: ControlInput, graphics: Graphics, directory: str):
current_dir = path.join("/home/rudism", directory)
top_menu = create_directory_menu(current_dir, "music")
menu = Menu(top_menu.data["sub_dir"], cinput, graphics)
menu = Menu(top_menu.data["sub_menu"], cinput, graphics)
MusicPlayer(cinput, graphics, menu).run()
def create_directory_menu(directory: str, dirname: str):