diff --git a/files/0001-Patch-youtube-dl-references-for-yt-dlp.patch b/files/0001-Patch-youtube-dl-references-for-yt-dlp.patch new file mode 100644 --- /dev/null +++ b/files/0001-Patch-youtube-dl-references-for-yt-dlp.patch @@ -0,0 +1,53 @@ +From e15469c8b20f6dd7bdb5877c86b0a1ad7712737c Mon Sep 17 00:00:00 2001 +From: Joshua Strobl Modified by Thomas Staudinger +Date: Tue, 27 Oct 2020 22:31:26 +0200 +Subject: [PATCH 1/1] Patch youtube-dl references for yt-dlp + +--- + mkchromecast/__init__.py | 2 +- + mkchromecast/audio.py | 2 +- + mkchromecast/video.py | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/mkchromecast/__init__.py b/mkchromecast/__init__.py +index e6e2f86c..d2ba9a6b 100644 +--- a/mkchromecast/__init__.py ++++ b/mkchromecast/__init__.py +@@ -532,7 +532,7 @@ parser.add_argument( + default=None, + help=''' + Stream from sources supported by youtube-dl. This option needs +- the youtube-dl package, and it also gives you access to all its ++ the yt-dlp package, and it also gives you access to all its + supported websites such as Dailymotion, LiveLeak, and Vimeo. + + For a comprehensive list, check: +diff --git a/mkchromecast/audio.py b/mkchromecast/audio.py +index c571e0c8..bcc2ef53 100644 +--- a/mkchromecast/audio.py ++++ b/mkchromecast/audio.py +@@ -78,7 +78,7 @@ if youtubeurl is not None: + video = query['v'][0] + print(colors.options('Playing video:') + ' ' + video) + command = [ +- 'youtube-dl', ++ 'yt-dlp', + '-o', + '-', + youtubeurl +diff --git a/mkchromecast/video.py b/mkchromecast/video.py +index f71bd93e..ae106c51 100644 +--- a/mkchromecast/video.py ++++ b/mkchromecast/video.py +@@ -58,7 +58,7 @@ browser closes the connection. + """ + if youtubeurl is not None: + command = [ +- 'youtube-dl', ++ 'yt-dlp', + '-o', + '-', + youtubeurl +-- +2.29.1 + diff --git a/package.yml b/package.yml --- a/package.yml +++ b/package.yml @@ -1,6 +1,6 @@ name : mkchromecast version : 0.3.8.1 -release : 8 +release : 9 source : - https://github.com/muammar/mkchromecast/archive/0.3.8.1.tar.gz : c680a398385d95d51c47eb522b95cf98f932b55caf065ab8b5725e78bf0099b2 license : MIT @@ -20,8 +20,9 @@ - python-itsdangerous - python-psutil - python3-qt5 - - youtube-dl + - yt-dlp setup : | + %patch -p1 < $pkgfiles/0001-Patch-youtube-dl-references-for-yt-dlp.patch # python3 shebang find . -type f -name "*.py" -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python3|' {} + install : | diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml --- a/pspec_x86_64.xml +++ b/pspec_x86_64.xml @@ -2,8 +2,8 @@ mkchromecast - Joey Riches - josephriches@gmail.com + Thomas Staudinger + Staudi.Kaos@gmail.com MIT multimedia.audio @@ -80,12 +80,12 @@ - - 2021-07-29 + + 2021-11-05 0.3.8.1 Packaging update - Joey Riches - josephriches@gmail.com + Thomas Staudinger + Staudi.Kaos@gmail.com \ No newline at end of file