added logging

This commit is contained in:
Rudis Muiznieks 2022-12-28 11:53:20 -06:00
parent a92e22a3ba
commit 594f1dfe5d
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
from menu import Menu, MenuType
from cinput import ControlInput
from graphics import Graphics
from icecream import ic
from mpv import MPV
class MusicPlayer:
@ -25,13 +26,16 @@ class MusicPlayer:
return
def _play_dir(self, directory: str, random: bool):
ic("Playing directory", directory, "random=", random)
return
def _play_track(self, track: str):
ic("Playing track", track)
player = MPV()
player.play(track)
player.wait_for_playback()
return
def _play_resume(self, directory: str):
ic("Resuming directory", directory)
return