~ruther/guix-local

c383446efd5cbbdad4e4d760d9484c88080618ba — Nicolas Graves 1 year, 2 months ago c6af1ee
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>
1 files changed, 4 insertions(+), 5 deletions(-)

M gnu/packages/video.scm
M gnu/packages/video.scm => gnu/packages/video.scm +4 -5
@@ 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'")