From d78e6e3adb59f1a556312202128816e52459ff89 Mon Sep 17 00:00:00 2001 From: gutmet Date: Wed, 8 Dec 2021 13:11:19 +0100 Subject: [PATCH] change youtube scripts to use yt-dlp instead of youtube-dl --- youtube-audio-dl | 2 +- youtube-numbered-dl | 2 +- youtube-par-cmd | 2 +- youtube-par-dl | 2 +- youtube-rss | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/youtube-audio-dl b/youtube-audio-dl index 907129f..0f573f9 100755 --- a/youtube-audio-dl +++ b/youtube-audio-dl @@ -1,3 +1,3 @@ #!/usr/bin/env bash -youtube-dl -i -f bestaudio --extract-audio --add-metadata "$1" +yt-dlp -i -f bestaudio --extract-audio --add-metadata "$1" diff --git a/youtube-numbered-dl b/youtube-numbered-dl index 53b5d68..1ff7551 100755 --- a/youtube-numbered-dl +++ b/youtube-numbered-dl @@ -1,3 +1,3 @@ #!/usr/bin/env bash -youtube-dl -o '%(playlist_index)s-%(title)s.%(ext)s' "$1" +yt-dlp -o '%(playlist_index)s-%(title)s.%(ext)s' "$1" diff --git a/youtube-par-cmd b/youtube-par-cmd index 992aedc..1b21bcb 100755 --- a/youtube-par-cmd +++ b/youtube-par-cmd @@ -6,7 +6,7 @@ cmd="$1" playlistURL="$2" -playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J` +playlistJSON=`yt-dlp "$playlistURL" --flat-playlist -J` playlistTitle=`echo "$playlistJSON" | jq -r '.title'` playlistInfo="$playlistTitle" diff --git a/youtube-par-dl b/youtube-par-dl index 5d35fee..a5a1442 100755 --- a/youtube-par-dl +++ b/youtube-par-dl @@ -1,3 +1,3 @@ #!/usr/bin/env bash -youtube-par-cmd "youtube-dl" "$1" +youtube-par-cmd "yt-dlp" "$1" diff --git a/youtube-rss b/youtube-rss index a084d24..5ac4b76 100755 --- a/youtube-rss +++ b/youtube-rss @@ -6,7 +6,7 @@ playlistURL="$1" noItems="$2" -playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` +playlistJSON=`yt-dlp "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` uploader=`echo "$playlistJSON" | jq -r '.uploader'` if [ "$uploader" = "null" ] || [ "$uploader" = "" ]; then uploader=`echo "$playlistJSON" | jq -r '.title'`