We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6825b6a commit 57193b0Copy full SHA for 57193b0
src/mido.sh
@@ -635,6 +635,21 @@ getMG() {
635
return 1
636
fi
637
638
+ local domain="buzzheavier.com"
639
+
640
+ if [[ "$result" = *"$domain"* ]]; then
641
+ result=$(curl --silent --max-time 30 --request GET --user-agent "$user_agent" --referer "$result" --head --proto =https --tlsv1.2 --http1.1 -- "$result/download") || {
642
+ handle_curl_error "$?" "$domain"
643
+ return $?
644
+ }
645
+ result=$(echo "$result" | grep -i -m 1 "hx-redirect:")
646
+ if [ -z "$result" ]; then
647
+ error "Failed to extract redirect location! Please report this at $SUPPORT/issues."
648
+ return 1
649
+ fi
650
+ result="https://${domain}${result:13}"
651
652
653
MG_URL="$result"
654
return 0
655
}
0 commit comments