aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-06-19 14:36:23 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-06-19 14:36:23 +0200
commit916ec9ba2b112e32d9ed3ca2387cda57b14a7bb5 (patch)
tree01c8945952cec24331d9734aa2626f161c221fec
parent82456c27d0a00f0b61c6c30238fc54166cec6b55 (diff)
downloadscripts-916ec9ba2b112e32d9ed3ca2387cda57b14a7bb5.tar.gz
scripts-916ec9ba2b112e32d9ed3ca2387cda57b14a7bb5.zip
Changed youtube-dl for yt-dlp in youtube-dl scripts.
-rwxr-xr-xyoutube-dl.sh2
-rwxr-xr-xyoutube-dlAudio.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/youtube-dl.sh b/youtube-dl.sh
index d75a580..fc18999 100755
--- a/youtube-dl.sh
+++ b/youtube-dl.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-youtube-dl --add-metadata \
+yt-dlp --add-metadata \
--format 'best[height<=1080]/best[width<=1920]/bestvideo[height<=1080]+bestaudio/best' \
--write-auto-sub --sub-lang 'es,en,ast,pl' --embed-subs --sub-format 'srt/best' \
-o "$HOME/downloads/videos/%(title)s.%(ext)s" "$@"
diff --git a/youtube-dlAudio.sh b/youtube-dlAudio.sh
index 585180d..1d11059 100755
--- a/youtube-dlAudio.sh
+++ b/youtube-dlAudio.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-youtube-dl -x --audio-format mp3 --embed-thumbnail -o "$HOME/downloads/audios/%(title)s.%(ext)s" "$1"
+yt-dlp -x --audio-format mp3 --embed-thumbnail -o "$HOME/downloads/audios/%(title)s.%(ext)s" "$1"