aboutsummaryrefslogtreecommitdiffstats
path: root/playlist.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2021-12-21 19:32:11 +0100
committerEddy Pedroni <eddy@0xf7.com>2021-12-21 19:32:11 +0100
commitae8f0a04190c3d13292ad68548f5275507e5812e (patch)
tree1bc207715280e6e9a1b99a84f9435e98d15bda1b /playlist.py
parent9ee7ee992d468b4f354ac16c34747e0c31d7b656 (diff)
Added some integration tests, refactored playlist, updated diagram
Diffstat (limited to 'playlist.py')
-rw-r--r--playlist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/playlist.py b/playlist.py
index 5c52774..e5a4daf 100644
--- a/playlist.py
+++ b/playlist.py
@@ -1,10 +1,10 @@
import logging
class Playlist:
- def __init__(self, callback):
+ def __init__(self, player):
self._songList = list()
self._currentSong = None
- self._setSongCallback = callback
+ self._setSongCallback = player.setCurrentSong
def addSong(self, path):
self._songList.append(path)