diff options
author | tfvlrue <35318734+tfvlrue@users.noreply.github.com> | 2020-09-12 05:35:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 09:35:11 +0000 |
commit | aa272535567cb372b93fcd4cd24e13bca050437f (patch) | |
tree | 52b196c40f46d41493830beeff4731e3a4a908d2 | |
parent | d51e23d9fc709a80ca037199a46e59c729a1192e (diff) | |
download | youtube-dl-aa272535567cb372b93fcd4cd24e13bca050437f.tar.gz youtube-dl-aa272535567cb372b93fcd4cd24e13bca050437f.tar.bz2 youtube-dl-aa272535567cb372b93fcd4cd24e13bca050437f.zip |
[soundcloud] Reduce pagination limit to fix 502 Bad Gateway errors when 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>
-rw-r--r-- | youtube_dl/extractor/soundcloud.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py index d37c52543..a2fddf6d9 100644 --- a/youtube_dl/extractor/soundcloud.py +++ b/youtube_dl/extractor/soundcloud.py @@ -558,8 +558,10 @@ class SoundcloudSetIE(SoundcloudPlaylistBaseIE): 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', } |