]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/tapely.py
Initiate new release.
[youtubedl] / youtube_dl / extractor / tapely.py
index 77e0562425f0577869c01cb10e690fa9bef7d230..f1f43d0a7113cbf40e5dfd3ffb71af5e900fab78 100644 (file)
@@ -4,10 +4,12 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
+from ..compat import (
+    compat_urllib_request,
+)
 from ..utils import (
-    ExtractorError,
     clean_html,
-    compat_urllib_request,
+    ExtractorError,
     float_or_none,
     parse_iso8601,
 )
@@ -50,6 +52,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)