Add youtube-dl-2018.07.21-ceskatelevize-https.patch to workaround

(badly) around https://github.com/rg3/youtube-dl/issues/16307
epel9
Matěj Cepl 7 years ago
parent d57cabfb21
commit 844b406c0e
No known key found for this signature in database
GPG Key ID: 79205802880BC9D8

@ -0,0 +1,23 @@
From fda2aa630318c5b7a384f9059aefdb535c7bf788 Mon Sep 17 00:00:00 2001
From: bato3 <bato3@bandyci.org>
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')

@ -13,7 +13,7 @@
Name: youtube-dl Name: youtube-dl
Version: 2018.07.21 Version: 2018.07.21
Release: 1%{?dist} Release: 2%{?dist}
Summary: A small command-line program to download online videos Summary: A small command-line program to download online videos
License: Unlicense License: Unlicense
URL: https://yt-dl.org 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 # "7D33 D762 FD6C 3513 0481 347F DB4B 54CB A482 6A18" > youtube-dl-gpgkeys.gpg
Source2: youtube-dl-gpgkeys.gpg Source2: youtube-dl-gpgkeys.gpg
Source3: %{name}.conf Source3: %{name}.conf
Patch0: youtube-dl-2018.07.21-ceskatelevize-https.patch
%if %{with python3} %if %{with python3}
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
%else %else
@ -45,6 +46,7 @@ Small command-line program to download videos from YouTube and other sites.
%prep %prep
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%setup -qn %{name} %setup -qn %{name}
%patch0 -p1
# remove pre-built file # remove pre-built file
rm youtube-dl rm youtube-dl
@ -116,6 +118,10 @@ install -pm644 youtube-dl.zsh %{buildroot}%{_datadir}/zsh/site-functions/_youtub
%changelog %changelog
* Mon Jul 23 2018 Matěj Cepl <mcepl@redhat.com> - 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 <mcepl@redhat.com> - 2018.07.21-1 * Sat Jul 21 2018 Matěj Cepl <mcepl@redhat.com> - 2018.07.21-1
- Update to the latest release. - Update to the latest release.

Loading…
Cancel
Save