diff options
author | Max Rees <maxcrees@me.com> | 2020-03-03 17:44:40 -0600 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2020-03-17 00:32:04 -0500 |
commit | 715edb8c773882b2ea2445c53185b56f542df6cc (patch) | |
tree | 8709371b416f7f661db24637f7793335ab607636 /user/youtube-dl/tumblr.patch | |
parent | e8e00a3795ef76efadfdd9cf171f037d6f9ebd7e (diff) | |
download | packages-715edb8c773882b2ea2445c53185b56f542df6cc.tar.gz packages-715edb8c773882b2ea2445c53185b56f542df6cc.tar.bz2 packages-715edb8c773882b2ea2445c53185b56f542df6cc.tar.xz packages-715edb8c773882b2ea2445c53185b56f542df6cc.zip |
user/youtube-dl: bump to 2020.03.08
Diffstat (limited to 'user/youtube-dl/tumblr.patch')
-rw-r--r-- | user/youtube-dl/tumblr.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/user/youtube-dl/tumblr.patch b/user/youtube-dl/tumblr.patch new file mode 100644 index 000000000..d34a79da6 --- /dev/null +++ b/user/youtube-dl/tumblr.patch @@ -0,0 +1,49 @@ +From a4a199b4dcc3e778621c4268a5dba615cf6f44ba Mon Sep 17 00:00:00 2001 +From: rafinetiz <rafii.netizz@gmail.com> +Date: Fri, 18 Oct 2019 21:17:00 +0700 +Subject: [PATCH 1/2] 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 edbb0aa6944b..71ced801859e 100644 +--- a/youtube_dl/extractor/tumblr.py ++++ b/youtube_dl/extractor/tumblr.py +@@ -165,7 +165,8 @@ def _real_extract(self, url): + 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 = [] + +From 43a19105d78c5c297d91936798d341f89919e9b1 Mon Sep 17 00:00:00 2001 +From: rafinetiz <rafii.netizz@gmail.com> +Date: Fri, 18 Oct 2019 21:45:12 +0700 +Subject: [PATCH 2/2] Fix coding style + +--- + youtube_dl/extractor/tumblr.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/youtube_dl/extractor/tumblr.py b/youtube_dl/extractor/tumblr.py +index 71ced801859e..61b0c1db65fe 100644 +--- a/youtube_dl/extractor/tumblr.py ++++ b/youtube_dl/extractor/tumblr.py +@@ -165,7 +165,10 @@ def _real_extract(self, url): + 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 |