projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
519c73f
)
[tapely] Add Referer header (Closes #4138)
author
Naglis Jonaitis
<njonaitis@gmail.com>
Sun, 9 Nov 2014 13:01:12 +0000
(15:01 +0200)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Sun, 9 Nov 2014 13:01:12 +0000
(15:01 +0200)
youtube_dl/extractor/tapely.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tapely.py
b/youtube_dl/extractor/tapely.py
index 77e0562425f0577869c01cb10e690fa9bef7d230..283e11350b212db0c857f1ccdb8982519a78cfbb 100644
(file)
--- a/
youtube_dl/extractor/tapely.py
+++ b/
youtube_dl/extractor/tapely.py
@@
-50,6
+50,7
@@
class TapelyIE(InfoExtractor):
request = compat_urllib_request.Request(playlist_url)
request.add_header('X-Requested-With', 'XMLHttpRequest')
request.add_header('Accept', 'application/json')
+ request.add_header('Referer', url)
playlist = self._download_json(request, display_id)