Fixing error 34

This commit is contained in:
Rafael Vargas
2023-01-28 10:42:07 -03:00
parent 2ffbab86eb
commit f4e9e46d6d
4 changed files with 60 additions and 5 deletions

View File

@@ -106,6 +106,10 @@ class Playlist:
self.__queue.append(song)
return song
def add_song_start(self, song: Song) -> Song:
self.__queue.insert(0, song)
return song
def shuffle(self) -> None:
random.shuffle(self.__queue)