This commit is contained in:
blacktwin 2020-12-09 21:02:50 -05:00
parent 4632dfc600
commit 557aabefb8

View File

@ -625,7 +625,7 @@ def delete_playlist(playlist_dict, title):
.format(playlist=playlist, user=user))
if isinstance(title, list):
# If list then removing selected playlists
playlists_titles = [pl.title for pl in title]
playlists_titles = [playlist if isinstance(playlist, str) else playlist.title for playlist in title]
if playlist.title in playlists_titles:
playlist.delete()
logger.info("...Deleted Playlist: {playlist.title} for '{user}'."