From fe0fb5e42af5a37cc5a278c7332507bf9fe5184b Mon Sep 17 00:00:00 2001 From: Dominique Liberda Date: Fri, 21 Apr 2023 21:28:42 +0200 Subject: [PATCH] fix: yt-dlp quality seletor excludes most formats --- webroot/watch.shs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webroot/watch.shs b/webroot/watch.shs index f0b745d..2c4f02e 100755 --- a/webroot/watch.shs +++ b/webroot/watch.shs @@ -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=()