X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/2a4d0fe27da3613470cc2f19d3586acb44900499..refs/heads/develop:/user/bkytpldl-generic?ds=sidebyside diff --git a/user/bkytpldl-generic b/user/bkytpldl-generic index d94bfac..4f6689f 100644 --- a/user/bkytpldl-generic +++ b/user/bkytpldl-generic @@ -1,16 +1,16 @@ #!/usr/bin/env bash # Desc: Download YouTube videos # Usage: $ ./bkytpldl-generic -# Version: 4.1.0 +# Version: 4.1.2 declare -a args; # array for yt-dlp arguments declare -a urls urls_rand; # array for YouTube playlist URLs # Settings dir_out="~/Videos/"; -urls+=("https://www.youtube.com/playlist?list=PLxxx"); # adjust me -urls+=("https://www.youtube.com/playlist?list=PLxxx"); # adjust me -urls+=("https://www.youtube.com/playlist?list=PLxxx"); # adjust me +urls+=("https://www.youtube.com/playlist?list=PLxxx"); # Adjust me. YouTube playlist URL goes here +urls+=("https://www.youtube.com/playlist?list=PLxxx"); # Adjust me. YouTube playlist URL goes here +urls+=("https://www.youtube.com/playlist?list=PLxxx"); # Adjust me. YouTube playlist URL goes here yell() { echo "$0: $*" >&2; } # print script path and all args to stderr die() { yell "$*"; exit 111; } # same as yell() but non-zero exit status @@ -83,7 +83,7 @@ args+=("--download-archive" "$pathDA"); ## Note: `$(title).120B` shortens title to 120 bytes (useful for ## titles with UTF-8 characters. args+=("-o"); -args+=("%(playlist)s/%(upload_date)s.%(channel)s.%(channel_id)s.%(title).120B.%(id)s.%(ext)s"); +args+=("%(playlist)s/%(upload_date)s.%(channel).32B.%(channel_id)s.%(title).120B.%(id)s.%(ext)s"); ## Limit download resolution to 1080p args+=("-S" "res:1080");