From 844b406c0e990603a51ffe85bc1d95dd1c87bf0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Mon, 23 Jul 2018 15:16:35 +0200 Subject: [PATCH] Add youtube-dl-2018.07.21-ceskatelevize-https.patch to workaround (badly) around https://github.com/rg3/youtube-dl/issues/16307 --- ...be-dl-2018.07.21-ceskatelevize-https.patch | 23 +++++++++++++++++++ youtube-dl.spec | 8 ++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 youtube-dl-2018.07.21-ceskatelevize-https.patch diff --git a/youtube-dl-2018.07.21-ceskatelevize-https.patch b/youtube-dl-2018.07.21-ceskatelevize-https.patch new file mode 100644 index 0000000..86f5856 --- /dev/null +++ b/youtube-dl-2018.07.21-ceskatelevize-https.patch @@ -0,0 +1,23 @@ +From fda2aa630318c5b7a384f9059aefdb535c7bf788 Mon Sep 17 00:00:00 2001 +From: bato3 +Date: Wed, 18 Jul 2018 02:07:36 +0200 +Subject: [PATCH] Fixes #16997 now require https (and probably: + --no-check-certificate) + +--- + youtube_dl/extractor/ceskatelevize.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/youtube_dl/extractor/ceskatelevize.py b/youtube_dl/extractor/ceskatelevize.py +index 6bad908595e..46380430f9d 100644 +--- a/youtube_dl/extractor/ceskatelevize.py ++++ b/youtube_dl/extractor/ceskatelevize.py +@@ -108,7 +108,7 @@ def _real_extract(self, url): + + for user_agent in (None, USER_AGENTS['Safari']): + req = sanitized_Request( +- 'http://www.ceskatelevize.cz/ivysilani/ajax/get-client-playlist', ++ 'https://www.ceskatelevize.cz/ivysilani/ajax/get-client-playlist', + data=urlencode_postdata(data)) + + req.add_header('Content-type', 'application/x-www-form-urlencoded') diff --git a/youtube-dl.spec b/youtube-dl.spec index d5a049d..65a860e 100644 --- a/youtube-dl.spec +++ b/youtube-dl.spec @@ -13,7 +13,7 @@ Name: youtube-dl Version: 2018.07.21 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A small command-line program to download online videos License: Unlicense URL: https://yt-dl.org @@ -26,6 +26,7 @@ Source1: https://github.com/rg3/youtube-dl/releases/download/%{version}/y # "7D33 D762 FD6C 3513 0481 347F DB4B 54CB A482 6A18" > youtube-dl-gpgkeys.gpg Source2: youtube-dl-gpgkeys.gpg Source3: %{name}.conf +Patch0: youtube-dl-2018.07.21-ceskatelevize-https.patch %if %{with python3} BuildRequires: python%{python3_pkgversion}-devel %else @@ -45,6 +46,7 @@ Small command-line program to download videos from YouTube and other sites. %prep gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %setup -qn %{name} +%patch0 -p1 # remove pre-built file rm youtube-dl @@ -116,6 +118,10 @@ install -pm644 youtube-dl.zsh %{buildroot}%{_datadir}/zsh/site-functions/_youtub %changelog +* Mon Jul 23 2018 Matěj Cepl - 2018.07.21-2 +- Add youtube-dl-2018.07.21-ceskatelevize-https.patch to workaround + (badly) around https://github.com/rg3/youtube-dl/issues/16307 + * Sat Jul 21 2018 Matěj Cepl - 2018.07.21-1 - Update to the latest release.