aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2021-12-21 20:26:05 +0100
committerEddy Pedroni <eddy@0xf7.com>2021-12-21 20:26:05 +0100
commit663970d0165e226147d95fb92c617714dfbd7553 (patch)
treee65c2dd0ffdd89ab06b9300d3d5f3428916d1870 /solo_tool.py
parentae8f0a04190c3d13292ad68548f5275507e5812e (diff)
Rolled back some refactorings, added some integration tests
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)