From a4a199b4dcc3e778621c4268a5dba615cf6f44ba Mon Sep 17 00:00:00 2001 From: rafinetiz Date: Fri, 18 Oct 2019 21:17:00 +0700 Subject: [PATCH] Fix tumblr permission denied #22755 --- youtube_dl/extractor/tumblr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/tumblr.py b/youtube_dl/extractor/tumblr.py index edbb0aa69..71ced8018 100644 --- a/youtube_dl/extractor/tumblr.py +++ b/youtube_dl/extractor/tumblr.py @@ -165,7 +165,8 @@ class TumblrIE(InfoExtractor): if iframe_url is None: return self.url_result(redirect_url, 'Generic') - iframe = self._download_webpage(iframe_url, video_id, 'Downloading iframe page') + iframe = self._download_webpage(iframe_url, video_id, 'Downloading iframe page', + headers={'Referer': url}) duration = None sources = []