[mixcloud] Bypass throttling for HTTP formats (#12579, #16424)
authorSergey M․ <dstftw@gmail.com>
Thu, 10 May 2018 15:22:26 +0000 (22:22 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 10 May 2018 15:22:26 +0000 (22:22 +0700)
youtube_dl/extractor/mixcloud.py

index a56b7690f8703cb873cba7d59cb097afee1b8121..b7bccb504529d7ca1e7f70ced45d86b9259d454b 100644 (file)
@@ -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)