@ -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
@ -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"
}