aboutsummaryrefslogtreecommitdiffstats
path: root/solo-tool-project/src/solo_tool/solo_tool.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-02-22 08:17:29 +0100
committerEddy Pedroni <epedroni@pm.me>2025-02-22 08:17:29 +0100
commiteaec524a233c9ee11023f21d430bcbc2f4d5a17e (patch)
tree9028a1879aaa07c373bd51198f6aed60eb6dfd1b /solo-tool-project/src/solo_tool/solo_tool.py
parentb676f88b21ef8046dcd3d9dac4b270007f2b959a (diff)
Moved nextSong and previousSong to SoloToolController
Diffstat (limited to 'solo-tool-project/src/solo_tool/solo_tool.py')
-rw-r--r--solo-tool-project/src/solo_tool/solo_tool.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/solo-tool-project/src/solo_tool/solo_tool.py b/solo-tool-project/src/solo_tool/solo_tool.py
index 211babf..38e3d11 100644
--- a/solo-tool-project/src/solo_tool/solo_tool.py
+++ b/solo-tool-project/src/solo_tool/solo_tool.py
@@ -36,19 +36,8 @@ class SoloTool:
if previous != new:
self._notifier.notify(Notifier.CURRENT_SONG_EVENT, new)
- def nextSong(self):
- previous = self._playlist.getCurrentSongIndex()
- self._playlist.nextSong()
- new = self._playlist.getCurrentSongIndex()
- if previous != new:
- self._notifier.notify(Notifier.CURRENT_SONG_EVENT, new)
-
- def previousSong(self):
- previous = self._playlist.getCurrentSongIndex()
- self._playlist.previousSong()
- new = self._playlist.getCurrentSongIndex()
- if previous != new:
- self._notifier.notify(Notifier.CURRENT_SONG_EVENT, new)
+ def getCurrentSong(self):
+ return self._playlist.getCurrentSongIndex()
def getSongs(self):
return self._playlist.getSongs()