summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-11-28 11:05:21 +0100
committerMarek Szuba <marecki@gentoo.org>2020-11-28 11:20:08 +0100
commit89753fbdb51079c5017823efca90e13c6181b60c (patch)
tree59133ad7013c63625575356187d43f0f0aefa711 /net-misc
parentdev-util/kyua: ~x64-macos keyworded (diff)
downloadgentoo-89753fbdb51079c5017823efca90e13c6181b60c.tar.gz
gentoo-89753fbdb51079c5017823efca90e13c6181b60c.tar.bz2
gentoo-89753fbdb51079c5017823efca90e13c6181b60c.zip
net-misc/youtube-dl-2020.11.26: fix test failure
Backported upstream fix, will no longer be needed come next release. Closes: https://bugs.gentoo.org/757324 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/youtube-dl/files/youtube-dl-2020.11.26-fix_spreakershowie_test_url.patch22
-rw-r--r--net-misc/youtube-dl/youtube-dl-2020.11.26.ebuild5
2 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/youtube-dl/files/youtube-dl-2020.11.26-fix_spreakershowie_test_url.patch b/net-misc/youtube-dl/files/youtube-dl-2020.11.26-fix_spreakershowie_test_url.patch
new file mode 100644
index 000000000000..c48760a4c41c
--- /dev/null
+++ b/net-misc/youtube-dl/files/youtube-dl-2020.11.26-fix_spreakershowie_test_url.patch
@@ -0,0 +1,22 @@
+From 99de2f38d375f794ffdc4f5a110a5227310f3ab0 Mon Sep 17 00:00:00 2001
+From: Remita Amine <remitamine@gmail.com>
+Date: Wed, 25 Nov 2020 21:39:17 +0100
+Subject: [PATCH] [spreaker] fix SpreakerShowIE test URL
+
+---
+ youtube_dl/extractor/spreaker.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/youtube_dl/extractor/spreaker.py b/youtube_dl/extractor/spreaker.py
+index beee6670c..6c7e40ae4 100644
+--- a/youtube_dl/extractor/spreaker.py
++++ b/youtube_dl/extractor/spreaker.py
+@@ -126,7 +126,7 @@ def _real_extract(self, url):
+ class SpreakerShowIE(InfoExtractor):
+ _VALID_URL = r'https?://api\.spreaker\.com/show/(?P<id>\d+)'
+ _TESTS = [{
+- 'url': 'https://www.spreaker.com/show/3-ninjas-podcast',
++ 'url': 'https://api.spreaker.com/show/4652058',
+ 'info_dict': {
+ 'id': '4652058',
+ },
diff --git a/net-misc/youtube-dl/youtube-dl-2020.11.26.ebuild b/net-misc/youtube-dl/youtube-dl-2020.11.26.ebuild
index 47f8343b521a..82be3f810520 100644
--- a/net-misc/youtube-dl/youtube-dl-2020.11.26.ebuild
+++ b/net-misc/youtube-dl/youtube-dl-2020.11.26.ebuild
@@ -22,6 +22,11 @@ RDEPEND="
dev-python/pycryptodome[${PYTHON_USEDEP}]
"
+# Only needed by this specific release, already fixed upstream
+PATCHES=(
+ "${FILESDIR}"/${PN}-2020.11.26-fix_spreakershowie_test_url.patch
+)
+
distutils_enable_tests nose
src_prepare() {