From ae8f0a04190c3d13292ad68548f5275507e5812e Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 21 Dec 2021 19:32:11 +0100 Subject: Added some integration tests, refactored playlist, updated diagram --- playlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'playlist.py') 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) -- cgit v1.2.3