1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: youtube-viewer: Replace youtube-dl input by yt-dlp.

* gnu/packages/video.scm (youtube-viewer):
[inputs]: Replace youtube-dl by yt-dlp.
[arguments]<#:phases>: Replace youtube-dl by yt-dlp in phase
'refer-to-inputs.

Change-Id: I1cf66ac11a37b5085b5162ff36bc92a265bdb3aa
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves
2025-08-12 14:38:12 +02:00
committed by Sharlatan Hellseher
parent c6af1ee303
commit c383446efd

View File

@@ -3334,8 +3334,7 @@ audio, images) from the Web. It can use either mpv or vlc for playback.")
perl-term-readline-gnu
perl-unicode-linebreak
xdg-utils
;; Some videos play without youtube-dl, but others silently fail to.
youtube-dl))
yt-dlp))
(arguments
`(#:modules ((guix build perl-build-system)
(guix build utils)
@@ -3348,9 +3347,9 @@ audio, images) from the Web. It can use either mpv or vlc for playback.")
(add-after 'unpack 'refer-to-inputs
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "lib/WWW/YoutubeViewer.pm"
(("'youtube-dl'")
(format #f "'~a/bin/youtube-dl'"
(assoc-ref inputs "youtube-dl"))))
(("'yt-dlp'")
(format #f "'~a'"
(search-input-file inputs "bin/yt-dlp"))))
(substitute* '("bin/gtk2-youtube-viewer"
"bin/gtk3-youtube-viewer")
(("'xdg-open'")