From fce45bd1ba21f16c6fc4bd99cd03e96fa53e3557 Mon Sep 17 00:00:00 2001 From: Bill ZHANG <36790218+Lutra-Fs@users.noreply.github.com> Date: Sat, 2 Dec 2023 01:11:01 +1100 Subject: [PATCH] fix xpath error for the main download url --- util/parse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/parse.sh b/util/parse.sh index 5a80bf83..3d843689 100644 --- a/util/parse.sh +++ b/util/parse.sh @@ -27,7 +27,7 @@ do # sed -n '22p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info # sed -n '24p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info VERSION=$(xmllint --xpath "string(/response/app/updatecheck/manifest/@version)" ./tmp/checker/${i}.xml) - URL1=$(xmllint --xpath "string(/response/app/updatecheck/urls/url[starts-with(@codebase,'https://redirector.gvt1.com')]/@codebase)" ./tmp/checker/${i}.xml) + URL1=$(xmllint --xpath "string(/response/app/updatecheck/urls/url[starts-with(@codebase,'https://edgedl.me.gvt1.com')]/@codebase)" ./tmp/checker/${i}.xml) URL2=$(xmllint --xpath "string(/response/app/updatecheck/urls/url[starts-with(@codebase,'https://dl.google.com')]/@codebase )" ./tmp/checker/${i}.xml) INSTALLER=$(xmllint --xpath "string(/response/app/updatecheck/manifest/actions/action[@event='install']/@run)" ./tmp/checker/${i}.xml) SHA256=$(xmllint --xpath "string(/response/app/updatecheck/manifest/packages/package/@hash_sha256)" ./tmp/checker/${i}.xml)