From 663970d0165e226147d95fb92c617714dfbd7553 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 21 Dec 2021 20:26:05 +0100 Subject: Rolled back some refactorings, added some integration tests --- solo_tool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'solo_tool.py') 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) -- cgit v1.2.3