[soundcloud] Reduce pagination limit to fix 502 Bad Gateway errors when listing a...
[youtube-dl] / youtube_dl / extractor / soundcloud.py
index d37c52543f1469652d69bea603e7d4f296d2bb50..a2fddf6d90f0e6775c9ed97565fb76e37d7308c2 100644 (file)
@@ -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',
         }