diff --git a/.local/bin/aliases b/.local/bin/aliases index 99d6e0e..1c7db94 100755 --- a/.local/bin/aliases +++ b/.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 diff --git a/.local/bin/dl b/.local/bin/dl index 9aa6862..fda095c 100755 --- a/.local/bin/dl +++ b/.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" }