From 663970d0165e226147d95fb92c617714dfbd7553 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 21 Dec 2021 20:26:05 +0100 Subject: Rolled back some refactorings, added some integration tests --- playlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'playlist.py') diff --git a/playlist.py b/playlist.py index e5a4daf..5c52774 100644 --- a/playlist.py +++ b/playlist.py @@ -1,10 +1,10 @@ import logging class Playlist: - def __init__(self, player): + def __init__(self, callback): self._songList = list() self._currentSong = None - self._setSongCallback = player.setCurrentSong + self._setSongCallback = callback def addSong(self, path): self._songList.append(path) -- cgit v1.2.3