aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorNaglis Jonaitis <njonaitis@gmail.com>2014-11-09 15:01:12 +0200
committerNaglis Jonaitis <njonaitis@gmail.com>2014-11-09 15:01:12 +0200
commit1a92e086a7cee10c4461cbb92b13fa0df195ada5 (patch)
treeb647ab44d505401371943d9802ed83819a788d27 /youtube_dl/extractor
parent519c73f267325d833441340afb088cbd651c8459 (diff)
[tapely] Add Referer header (Closes #4138)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/tapely.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/tapely.py b/youtube_dl/extractor/tapely.py
index 77e056242..283e11350 100644
--- 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)