Skip to content

Commit

Permalink
Fix issue where remove_songs would not remove all playlist items
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed May 15, 2020
1 parent fc7bbc4 commit 6a123ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YouTube.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_playlist_id(self, name):
raise Exception("Playlist title not found in playlists")

def remove_songs(self, playlistId):
items = self.api.get_playlist(playlistId)['tracks']
items = self.api.get_playlist(playlistId, 10000)['tracks']
if len(items) > 0:
self.api.remove_playlist_items(playlistId, items)

Expand Down

0 comments on commit 6a123ea

Please sign in to comment.