fix: yt-dlp quality seletor excludes most formats

merge-requests/6/merge
Dominique Liberda 2023-04-21 21:28:42 +02:00
parent 579795d83f
commit fe0fb5e42a
1 changed files with 1 additions and 4 deletions

View File

@ -63,9 +63,6 @@ if [[ "${get_data[v]}" ]]; then
strings[error]='Unexpected error has occured'
fi
cd ..
echo "BBBBBBB ${cfg[template]}" > /dev/stderr
#source templates/head.sh
source "${cfg[namespace]}/templates/header.shs"
render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/watch_error.html"
return
@ -95,7 +92,7 @@ if [[ "${get_data[v]}" ]]; then
#source templates/head.sh
source "${cfg[namespace]}/templates/header.shs"
fi
formats=$(jq -c '[.formats[] | select(.protocol == "https") | {"format_id":.format_id,"url":.url,"ext":.ext,"width":.width,"height":.height,"format_note":.format_note,"acodec":.acodec,"vcodec":.vcodec,"abr":.abr,"fps":.fps}]' <<< "$video")
formats=$(jq -c '[.formats[] | {"format_id":.format_id,"url":.url,"ext":.ext,"width":.width,"height":.height,"format_note":.format_note,"acodec":.acodec,"vcodec":.vcodec,"abr":.abr,"fps":.fps}]' <<< "$video")
sub_array=()