update lastest rve

and add some header request
This commit is contained in:
siritami
2025-01-17 14:37:53 +07:00
parent f49d3bc0b8
commit 2bebdc94f4
2 changed files with 4 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ dl_gh "revanced-patches revanced-cli" "inotia00" "prerelease"
#patch "youtube-beta-x86_64" "revanced-extended" "inotia"
# Patch YouTube:
get_patches_key "youtube-revanced-extended"
version="20.02.34"
get_apk "com.google.android.youtube" "youtube-beta" "youtube" "google-inc/youtube/youtube"
patch "youtube-beta" "revanced-extended" "inotia"
# Split architecture Youtube:

View File

@@ -136,13 +136,13 @@ get_patches_key() {
# Download apks files from APKMirror:
_req() {
if [ "$2" = "-" ]; then
wget -nv -O "$2" --header="$3" "$1" || rm -f "$2"
wget -nv -O "$2" --header="User-Agent: Mozilla/5.0 (Android 14; Mobile; rv:134.0) Gecko/134.0 Firefox/134.0" --header="Content-Type: application/octet-stream" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Upgrade-Insecure-Requests: 1" --header="Cache-Control: max-age=0" --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" --keep-session-cookies --timeout=30 "$1" || rm -f "$2"
else
wget -nv -O "./download/$2" --header="$3" "$1" || rm -f "./download/$2"
wget -nv -O "./download/$2" --header="User-Agent: Mozilla/5.0 (Android 14; Mobile; rv:134.0) Gecko/134.0 Firefox/134.0" --header="Content-Type: application/octet-stream" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Upgrade-Insecure-Requests: 1" --header="Cache-Control: max-age=0" --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" --keep-session-cookies --timeout=30 "$1" || rm -f "./download/$2"
fi
}
req() {
_req "$1" "$2" "User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.58 Mobile Safari/537.36"
_req "$1" "$2"
}
dl_apk() {
local url=$1 regexp=$2 output=$3