mirror of
https://github.com/CoolnsX/hls_downloader.git
synced 2025-12-20 07:15:21 +05:30
ignore iframes
This commit is contained in:
committed by
GitHub
parent
ec8d6fa49d
commit
0ddd5fc3c1
2
hls
2
hls
@@ -54,7 +54,7 @@ shift $((OPTIND - 1))
|
|||||||
[ -z "$*" ] && printf "\033[1;34mEnter link >\033[0m " && read -r link || link=$*
|
[ -z "$*" ] && printf "\033[1;34mEnter link >\033[0m " && read -r link || link=$*
|
||||||
trap "killall curl;rm -rdf '$tmpdir' '$jobdir';exit 0" INT HUP
|
trap "killall curl;rm -rdf '$tmpdir' '$jobdir';exit 0" INT HUP
|
||||||
printf "\033[2K\r\033[1;36mFetching resolutions.."
|
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')
|
res_list=$(printf "%s" "$m3u8_data" | sed -nE 's_.*RESOLUTION=.*x([^,]*).*_\1_p')
|
||||||
if [ -n "$res_list" ];then
|
if [ -n "$res_list" ];then
|
||||||
highest_res=$(printf "%s" "$res_list" | sort -nr | head -1)
|
highest_res=$(printf "%s" "$res_list" | sort -nr | head -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user