projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f896e1c
)
[mixcloud] support older urllib versions
author
Philip Huppert
<philip@zeilen-sprung.de>
Sat, 9 Apr 2016 20:20:16 +0000
(22:20 +0200)
committer
Philip Huppert
<philip@zeilen-sprung.de>
Tue, 12 Apr 2016 19:18:13 +0000
(21:18 +0200)
youtube_dl/extractor/mixcloud.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mixcloud.py
b/youtube_dl/extractor/mixcloud.py
index dcc4ddf25f82628d4dbd3cd129159e7d21b24c96..769b68dc36e7813b45d3f6ddb655ef8a8ed28c19 100644
(file)
--- 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