code cleanup

This commit is contained in:
CoolnsX
2022-03-02 22:20:36 +05:30
parent 11729968e7
commit ed4a0cf6c9
3 changed files with 7 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ decrypt_link() {
curl -s -H "X-Requested-With:XMLHttpRequest" -H "User-Agent:$agent" -H "Referer:https:$1" "$ajax_url" -d "id=$ajax" -d "time=69420691337800813569" | jq -r '.source[].file' | head -4 | tail -1
}
notify-send -t 1000 "parsing gogoanime.... please wait!!"
url=$(curl -s -A "$agent" "https://gogoanime.film" | sed -nE 's/.*"name".*href="\/([^"]*)".*/\1/p' | dmenu -p "Select anime:")
[ -z "$url" ] && notify-send -u critical "Err.. no anime selected" && exit 0
refr=$(curl -s -A "$agent" "https://gogoanime.film/$url" | sed -n -E 's/^[[:space:]]*<a href="#" rel="100" data-video="([^"]*)".*/\1/p')