Scripts: Add metadata to downloaded videos

This commit is contained in:
Riyyi
2022-03-02 12:17:30 +01:00
parent 0095a45a1b
commit cf1190e78d
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -106,6 +106,8 @@ stream() {
if [ -z "$quality" ]; then if [ -z "$quality" ]; then
streamlink --quiet --config "/dev/null" "https://twitch.tv/$1" streamlink --quiet --config "/dev/null" "https://twitch.tv/$1"
[ "$?" -ne 0 ] && return 1
printf "Select stream quality: " printf "Select stream quality: "
read -r quality read -r quality
fi fi
+1
View File
@@ -112,6 +112,7 @@ downloadVideo()
[ -z "$videoBest" ] && videoLimit="[height<=?1080]" [ -z "$videoBest" ] && videoLimit="[height<=?1080]"
youtube-dl --format "bestvideo${videoLimit}+bestaudio/best" \ youtube-dl --format "bestvideo${videoLimit}+bestaudio/best" \
--add-metadata \
--external-downloader aria2c \ --external-downloader aria2c \
--cookies "$HOME/documents/youtube.com-cookies.txt" "$1" --cookies "$HOME/documents/youtube.com-cookies.txt" "$1"
} }