added logging
This commit is contained in:
parent
a92e22a3ba
commit
594f1dfe5d
|
@ -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
|
||||
|
|
Reference in New Issue