Update patch.sh

This commit is contained in:
FiorenMas
2023-05-02 00:12:28 +07:00
committed by GitHub
parent 8dff49dd84
commit 9878f9a267

View File

@@ -55,7 +55,7 @@ get_latestytmversion() {
echo "Latest Youtube Music Version: $ytmversion"
}
get_support_version() {
ytmversion=$(jq -r '.[] | select(.name == "hide-get-premium") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json)
ytmversion=$(jq -r '.[] | select(.name == "hide-general-ads") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json)
}
# Function Patch APK
patch_ms() {
@@ -100,4 +100,4 @@ download_latest_release
fi
patch_ms
clean_cache
done
done