aboutsummaryrefslogtreecommitdiffstats
path: root/solo-tool-project/src/solo_tool/playlist.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-02-22 11:26:27 +0100
committerEddy Pedroni <epedroni@pm.me>2025-02-22 11:26:27 +0100
commite6f712c656365241434a71983024ac2a6e829cc8 (patch)
tree5bc9ac292834067aa3c1640165d050ff61aed399 /solo-tool-project/src/solo_tool/playlist.py
parent336ee67aa4b6c467d3d936124db16ce7dcd5a3b3 (diff)
Removed playlist class, simplified a bunch of stuff
Diffstat (limited to 'solo-tool-project/src/solo_tool/playlist.py')
-rw-r--r--solo-tool-project/src/solo_tool/playlist.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/solo-tool-project/src/solo_tool/playlist.py b/solo-tool-project/src/solo_tool/playlist.py
deleted file mode 100644
index 988cc04..0000000
--- a/solo-tool-project/src/solo_tool/playlist.py
+++ /dev/null
@@ -1,26 +0,0 @@
-class Playlist:
- def __init__(self, callback):
- self._songList = list()
- self._currentSong = None
- self._setSongCallback = callback
-
- def addSong(self, path):
- self._songList.append(path)
-
- def setCurrentSong(self, index):
- if index >= 0 and index < len(self._songList):
- self._currentSong = index
- self._setSongCallback(self._songList[index])
-
- def getCurrentSong(self):
- index = self._currentSong
- return self._songList[index] if index is not None else None
-
- def getCurrentSongIndex(self):
- return self._currentSong
-
- def getSongs(self):
- return self._songList
-
- def clear(self):
- self.__init__(self._setSongCallback)