addressing #259
This commit is contained in:
parent
4632dfc600
commit
557aabefb8
@ -625,7 +625,7 @@ def delete_playlist(playlist_dict, title):
|
|||||||
.format(playlist=playlist, user=user))
|
.format(playlist=playlist, user=user))
|
||||||
if isinstance(title, list):
|
if isinstance(title, list):
|
||||||
# If list then removing selected playlists
|
# 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:
|
if playlist.title in playlists_titles:
|
||||||
playlist.delete()
|
playlist.delete()
|
||||||
logger.info("...Deleted Playlist: {playlist.title} for '{user}'."
|
logger.info("...Deleted Playlist: {playlist.title} for '{user}'."
|
||||||
|
Loading…
Reference in New Issue
Block a user