From 1a92e086a7cee10c4461cbb92b13fa0df195ada5 Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Sun, 9 Nov 2014 15:01:12 +0200 Subject: [PATCH] [tapely] Add Referer header (Closes #4138) --- youtube_dl/extractor/tapely.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.22.2