mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
dl_apkmirror: fix version url
This commit is contained in:
parent
8276e48295
commit
e89f71c1ae
6
utils.sh
6
utils.sh
@ -317,8 +317,10 @@ dl_apkmirror() {
|
|||||||
is_bundle=true
|
is_bundle=true
|
||||||
else
|
else
|
||||||
if [ "$arch" = "arm-v7a" ]; then arch="armeabi-v7a"; fi
|
if [ "$arch" = "arm-v7a" ]; then arch="armeabi-v7a"; fi
|
||||||
local resp node app_table dlurl=""
|
local resp node app_table uurl dlurl=""
|
||||||
url="${url}/${url##*/}-${version//./-}-release/"
|
uurl=$(grep -F "downloadLink" <<<"$__APKMIRROR_RESP__" | grep -F "${version//./-}-release/" |
|
||||||
|
sed -n 's;.*href="\(.*-release\).*;\1;p')
|
||||||
|
if [ -z "$uurl" ]; then url="${url}/${url##*/}-${version//./-}-release/"; else url=https://www.apkmirror.com$uurl; fi
|
||||||
resp=$(req "$url" -) || return 1
|
resp=$(req "$url" -) || return 1
|
||||||
node=$($HTMLQ "div.table-row.headerFont:nth-last-child(1)" -r "span:nth-child(n+3)" <<<"$resp")
|
node=$($HTMLQ "div.table-row.headerFont:nth-last-child(1)" -r "span:nth-child(n+3)" <<<"$resp")
|
||||||
if [ "$node" ]; then
|
if [ "$node" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user