mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
Update utils.sh
https://github.com/revanced/revanced-cli/issues/99 https://github.com/revanced/revanced-cli/issues/99#issuecomment-1186666693
This commit is contained in:
parent
1b30d1e0bb
commit
ed9b49ebb3
6
utils.sh
6
utils.sh
@ -51,7 +51,7 @@ log() {
|
||||
dl_yt() {
|
||||
echo "Downloading YouTube"
|
||||
local url="https://www.apkmirror.com/apk/google-inc/youtube/youtube-${1//./-}-release/"
|
||||
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's/href="/@/g; s;.*BUNDLE</span>[^@]*@\([^#]*\).*;\1;p')"
|
||||
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's/href="/@/g; s;.*APK</span>[^@]*@\([^#]*\).*;\1;p')"
|
||||
log "\nYouTube version: $1\ndownloaded from: [APKMirror]($url)"
|
||||
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')"
|
||||
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')"
|
||||
@ -80,9 +80,7 @@ build_yt() {
|
||||
yt_base_apk="${TEMP_DIR}/base-v${last_ver}.apk"
|
||||
|
||||
if [ ! -f "$yt_base_apk" ]; then
|
||||
dl_output="${TEMP_DIR}/yt-stock-v${last_ver}.zip"
|
||||
dl_yt "$last_ver" "$dl_output"
|
||||
unzip -p "$dl_output" "base.apk" >"$yt_base_apk"
|
||||
dl_yt "$last_ver" "$yt_base_apk"
|
||||
fi
|
||||
|
||||
yt_patched_apk="${TEMP_DIR}/yt-revanced-base.apk"
|
||||
|
Loading…
x
Reference in New Issue
Block a user