[tapely] Add Referer header (Closes #4138)
authorNaglis Jonaitis <njonaitis@gmail.com>
Sun, 9 Nov 2014 13:01:12 +0000 (15:01 +0200)
committerNaglis Jonaitis <njonaitis@gmail.com>
Sun, 9 Nov 2014 13:01:12 +0000 (15:01 +0200)
youtube_dl/extractor/tapely.py

index 77e0562425f0577869c01cb10e690fa9bef7d230..283e11350b212db0c857f1ccdb8982519a78cfbb 100644 (file)
@@ -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)