From dcdf4bc9de029513d35141bf4a2e1c8bd17ee2c7 Mon Sep 17 00:00:00 2001 From: Vixb Date: Tue, 13 Aug 2024 11:13:18 +0800 Subject: [PATCH] qqnt: Update checkver (#885) --- bucket/qqnt.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bucket/qqnt.json b/bucket/qqnt.json index 9ef570f23e6..b3c26132393 100644 --- a/bucket/qqnt.json +++ b/bucket/qqnt.json @@ -21,7 +21,14 @@ ] ], "checkver": { - "url": "https://qq-web.cdn-go.cn/im.qq.com_new/f2ff7664/rainbow/windowsDownloadUrl.js", + "script": [ + "$url = 'https://im.qq.com/pcqq/index.shtml'", + "$resp = Invoke-WebRequest -Uri $url", + "$cont = $resp.Content", + "$pattern = 'https://qq-web.cdn-go.cn.*windowsDownloadUrl.js'", + "$jsUrl = [regex]::Match($cont, $pattern).Value", + "Invoke-WebRequest -Uri $jsUrl" + ], "regex": "QQNT/Windows/QQ_([\\d\\.]+)_([\\d]+)_x86_01.exe", "replace": "${1}.${2}" },