Browse Source

Scripts: Add metadata to downloaded videos

master
Riyyi 3 years ago
parent
commit
cf1190e78d
  1. 2
      .local/bin/aliases
  2. 1
      .local/bin/dl

2
.local/bin/aliases

@ -106,6 +106,8 @@ stream() {
if [ -z "$quality" ]; then
streamlink --quiet --config "/dev/null" "https://twitch.tv/$1"
[ "$?" -ne 0 ] && return 1
printf "Select stream quality: "
read -r quality
fi

1
.local/bin/dl

@ -112,6 +112,7 @@ downloadVideo()
[ -z "$videoBest" ] && videoLimit="[height<=?1080]"
youtube-dl --format "bestvideo${videoLimit}+bestaudio/best" \
--add-metadata \
--external-downloader aria2c \
--cookies "$HOME/documents/youtube.com-cookies.txt" "$1"
}

Loading…
Cancel
Save