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'
|
strings[error]='Unexpected error has occured'
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
echo "BBBBBBB ${cfg[template]}" > /dev/stderr
|
|
||||||
|
|
||||||
#source templates/head.sh
|
|
||||||
source "${cfg[namespace]}/templates/header.shs"
|
source "${cfg[namespace]}/templates/header.shs"
|
||||||
render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/watch_error.html"
|
render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/watch_error.html"
|
||||||
return
|
return
|
||||||
|
@ -95,7 +92,7 @@ if [[ "${get_data[v]}" ]]; then
|
||||||
#source templates/head.sh
|
#source templates/head.sh
|
||||||
source "${cfg[namespace]}/templates/header.shs"
|
source "${cfg[namespace]}/templates/header.shs"
|
||||||
fi
|
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=()
|
sub_array=()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue