fix: yt-dlp quality seletor excludes most formats
This commit is contained in:
parent
579795d83f
commit
fe0fb5e42a
|
@ -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=()
|
||||
|
||||
|
|
Loading…
Reference in a new issue