added logging
This commit is contained in:
parent
a92e22a3ba
commit
594f1dfe5d
|
@ -1,6 +1,7 @@
|
||||||
from menu import Menu, MenuType
|
from menu import Menu, MenuType
|
||||||
from cinput import ControlInput
|
from cinput import ControlInput
|
||||||
from graphics import Graphics
|
from graphics import Graphics
|
||||||
|
from icecream import ic
|
||||||
from mpv import MPV
|
from mpv import MPV
|
||||||
|
|
||||||
class MusicPlayer:
|
class MusicPlayer:
|
||||||
|
@ -25,13 +26,16 @@ class MusicPlayer:
|
||||||
return
|
return
|
||||||
|
|
||||||
def _play_dir(self, directory: str, random: bool):
|
def _play_dir(self, directory: str, random: bool):
|
||||||
|
ic("Playing directory", directory, "random=", random)
|
||||||
return
|
return
|
||||||
|
|
||||||
def _play_track(self, track: str):
|
def _play_track(self, track: str):
|
||||||
|
ic("Playing track", track)
|
||||||
player = MPV()
|
player = MPV()
|
||||||
player.play(track)
|
player.play(track)
|
||||||
player.wait_for_playback()
|
player.wait_for_playback()
|
||||||
return
|
return
|
||||||
|
|
||||||
def _play_resume(self, directory: str):
|
def _play_resume(self, directory: str):
|
||||||
|
ic("Resuming directory", directory)
|
||||||
return
|
return
|
||||||
|
|
Reference in New Issue