aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilip Huppert <philip@zeilen-sprung.de>2016-04-09 22:20:16 +0200
committerPhilip Huppert <philip@zeilen-sprung.de>2016-04-12 21:18:13 +0200
commitdcaf00fb3eb716ea146a8e8870c7753b9acf67b8 (patch)
tree1db264a1ad3f61fce27459bc91dfbfafc087d1bf /youtube_dl
parentf896e1ccefc5d946c83f91bf517801882f4184dc (diff)
[mixcloud] support older urllib versions
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/mixcloud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mixcloud.py b/youtube_dl/extractor/mixcloud.py
index dcc4ddf25..769b68dc3 100644
--- a/youtube_dl/extractor/mixcloud.py
+++ b/youtube_dl/extractor/mixcloud.py
@@ -171,7 +171,7 @@ class MixcloudUserIE(InfoExtractor):
while True:
# fake a AJAX request to retrieve a list fragment
page_url = base_url + "?page=%d&list=main&_ajax=1" % current_page
- req = compat_urllib_request.Request(page_url, headers={"X-Requested-With": "XMLHttpRequest"}, method="GET")
+ req = compat_urllib_request.Request(page_url, headers={"X-Requested-With": "XMLHttpRequest"})
resp = self._download_webpage(req, video_id, note=dl_note + " (page %d)" % current_page, errnote=dl_errnote)
# extract all track URLs from fragment