diff --git a/spotify_ripper/post_actions.py b/spotify_ripper/post_actions.py index 0ec49c3..daa509d 100644 --- a/spotify_ripper/post_actions.py +++ b/spotify_ripper/post_actions.py @@ -283,9 +283,10 @@ def queue_remove_from_playlist(self, idx): #depreciated "Did you use '-r' without a playlist link?" + Fore.RESET) def remove_tracks_from_playlist(self): - ripper = self.ripper - remove_all_from_playlist(ripper.session.user.canonical_name, ripper.playlist_uri) - print("Playlist Emptied!") + if self.args.remove_from_playlist: + ripper = self.ripper + remove_all_from_playlist(ripper.session.user.canonical_name, ripper.playlist_uri) + print("Playlist Emptied!") def remove_offline_cache(self): ripper = self.ripper