diff options
Diffstat (limited to 'solo_tool.py')
-rw-r--r-- | solo_tool.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/solo_tool.py b/solo_tool.py index c32d3e8..d2147bf 100644 --- a/solo_tool.py +++ b/solo_tool.py @@ -6,8 +6,8 @@ from session_manager import SessionManager from player_vlc import Player class SoloTool: - def __init__(self, player=None): - self._player = Player() if player is None else player + def __init__(self, playerOverride=None): + self._player = Player() if playerOverride is None else playerOverride self._playlist = Playlist(self._playlistCallback) self._abController = ABController(enabled=False, callback=self._abControllerCallback) self._sessionManager = SessionManager(self._playlist, self._abController) @@ -30,6 +30,12 @@ class SoloTool: def setSong(self, index): self._playlist.setCurrentSong(index) + def nextSong(self): + self._playlist.nextSong() + + def previousSong(self): + self._playlist.previousSong() + def getSongs(self): return self._playlist.getSongs() |