aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool.py
diff options
context:
space:
mode:
Diffstat (limited to 'solo_tool.py')
-rw-r--r--solo_tool.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/solo_tool.py b/solo_tool.py
index da1a402..b1edba6 100644
--- a/solo_tool.py
+++ b/solo_tool.py
@@ -6,10 +6,13 @@ from player_vlc import Player
class SoloTool:
def __init__(self, player=None):
self._player = Player() if player is None else player
- self._playlist = Playlist(self._player)
+ self._playlist = Playlist(self._playlistCallback)
self._abController = ABController()
self._sessionManager = SessionManager(self._playlist, self._abController)
+ def _playlistCallback(self, path):
+ self._player.setCurrentSong("")
+
def addSong(self, path):
self._sessionManager.addSong(path)