aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2021-11-03 21:06:58 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2021-11-03 21:06:58 +0100
commit99eb846567c8cbac32ea2d26f0567f277241798d (patch)
treea95679e82b2c336f7f77a6723fa642d195c40ddc
parent7384ab44dc48f4b0a0dcc09ac5c4a880f2272e53 (diff)
downloadscripts-99eb846567c8cbac32ea2d26f0567f277241798d.tar.gz
scripts-99eb846567c8cbac32ea2d26f0567f277241798d.zip
yotube-dl.sh: Download at best 1080p and with only es, en, ast and pl subs.
-rwxr-xr-xyoutube-dl.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube-dl.sh b/youtube-dl.sh
index 3ba508e..d75a580 100755
--- a/youtube-dl.sh
+++ b/youtube-dl.sh
@@ -1,4 +1,5 @@
#!/bin/sh
youtube-dl --add-metadata \
- --write-auto-sub --all-subs --embed-subs --sub-format "srt/best" \
+ --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" "$@"