Skip to content

Commit

Permalink
[soundcloud] Reduce pagination limit to fix 502 Bad Gateway errors wh…
Browse files Browse the repository at this point in the history
…en listing a user's tracks. (#26557)

Per the documentation here https://developers.soundcloud.com/blog/offset-pagination-deprecated the maximum limit is 200, so let's respect that (even if a higher value sometimes works).

Co-authored-by: tfvlrue <tfvlrue>
  • Loading branch information
tfvlrue authored Sep 12, 2020
1 parent d51e23d commit aa27253
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion youtube_dl/extractor/soundcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,10 @@ def _real_extract(self, url):

class SoundcloudPagedPlaylistBaseIE(SoundcloudIE):
def _extract_playlist(self, base_url, playlist_id, playlist_title):
# Per the SoundCloud documentation, the maximum limit for a linked partioning query is 200.
# https://developers.soundcloud.com/blog/offset-pagination-deprecated
COMMON_QUERY = {
'limit': 80000,
'limit': 200,
'linked_partitioning': '1',
}

Expand Down

0 comments on commit aa27253

Please sign in to comment.