From 0ab2a5a83031bc335dbf1f9e544e541ffb1ed214 Mon Sep 17 00:00:00 2001 From: Rafael Vargas Date: Thu, 30 Dec 2021 20:38:48 -0400 Subject: [PATCH] Playlist will not more check if the returned music has source --- vulkanbot/music/Playlist.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/vulkanbot/music/Playlist.py b/vulkanbot/music/Playlist.py index fb27da1..b290eb3 100644 --- a/vulkanbot/music/Playlist.py +++ b/vulkanbot/music/Playlist.py @@ -60,14 +60,11 @@ class Playlist(IPlaylist): return None self.__current = self.__queue[0] # Att the current with the first one - self.__queue.popleft() # Remove the current from queue - if self.__current.source == None: # Try until find one source - continue + self.__queue.popleft() # Remove the current from queue + self.__name_history.append(self.__current.identifier) # Add to name history + self.__songs_history.append(self.__current) # Add to song history - else: - self.__name_history.append(self.__current.title) # Add to name history - self.__songs_history.append(self.__current) # Add to song history - return self.__current + return self.__current def prev_song(self): """Return the source of the last song played