Upgrading PlayController and Spotify Connection

This commit is contained in:
Rafael Vargas
2022-03-26 17:42:49 -04:00
parent f30513f710
commit 4c66c64041
15 changed files with 213 additions and 163 deletions

View File

@@ -92,8 +92,7 @@ class Playlist(IPlaylist):
self.__current = last_song
return self.__current # return the song
def add_song(self, identifier: str, requester: str) -> Song:
song = Song(identifier=identifier, playlist=self, requester=requester)
def add_song(self, song: Song) -> Song:
self.__queue.append(song)
return song