Browse Source

[mixcloud] Bypass throttling for HTTP formats (#12579, #16424)

Sergey M․ 7 years ago
parent
commit
bc5e4aa57e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      youtube_dl/extractor/mixcloud.py

+ 4 - 0
youtube_dl/extractor/mixcloud.py

@@ -179,6 +179,10 @@ class MixcloudIE(InfoExtractor):
                     formats.append({
                         'format_id': 'http',
                         'url': decrypted,
+                        'downloader_options': {
+                            # Mixcloud starts throttling at >~5M
+                            'http_chunk_size': 5242880,
+                        },
                     })
             self._sort_formats(formats)