ignore iframes

This commit is contained in:
Tanveer Ahmed Ansari
2025-03-12 17:49:32 +05:30
committed by GitHub
parent ec8d6fa49d
commit 0ddd5fc3c1

2
hls
View File

@@ -54,7 +54,7 @@ shift $((OPTIND - 1))
[ -z "$*" ] && printf "\033[1;34mEnter link >\033[0m " && read -r link || link=$*
trap "killall curl;rm -rdf '$tmpdir' '$jobdir';exit 0" INT HUP
printf "\033[2K\r\033[1;36mFetching resolutions.."
m3u8_data=$(curl -s "$link")
m3u8_data=$(curl -s "$link" | sed '/#EXT-X-I-FRAME-STREAM-INF/d')
res_list=$(printf "%s" "$m3u8_data" | sed -nE 's_.*RESOLUTION=.*x([^,]*).*_\1_p')
if [ -n "$res_list" ];then
highest_res=$(printf "%s" "$res_list" | sort -nr | head -1)