From: Naglis Jonaitis Date: Sun, 9 Nov 2014 13:01:12 +0000 (+0200) Subject: [tapely] Add Referer header (Closes #4138) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1a92e086a7cee10c4461cbb92b13fa0df195ada5;p=youtube-dl [tapely] Add Referer header (Closes #4138) --- 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)