From 396c1690fb0e4f0e5f070ea9b92d157df1f078f7 Mon Sep 17 00:00:00 2001 From: Tunisiano18 Date: Mon, 3 Jun 2024 19:06:38 +0200 Subject: [PATCH] (gom-player) New version check The website has been updated, the webpage with the version doesn't exist anymore. Getting the latest version from the releases notes instead --- automatic/gom-player/update.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automatic/gom-player/update.ps1 b/automatic/gom-player/update.ps1 index 0a026d6d257..ebf7471e80d 100644 --- a/automatic/gom-player/update.ps1 +++ b/automatic/gom-player/update.ps1 @@ -1,7 +1,7 @@ Import-Module Chocolatey-AU $releases = 'https://www.gomlab.com/gomplayer-media-player/' -$versions = 'https://www.gomlab.com/ajax/update.gom?page=1&lang=eng&product=GOMPLAYER&update_lang=eng' +$versions = 'https://www.gomlab.com/en/gomplayer-media-player/release-note' $softwareName = 'GOM Player' function global:au_BeforeUpdate { @@ -27,10 +27,10 @@ function global:au_GetLatest { $re = '\.exe$' $url32 = $download_page.Links | Where-Object href -match $re | Select-Object -first 1 -expand href - $verRe = '((?:\d+\.){2,3}\d+)' + $verRe = '(V (?:\d+\.){2,3}\d+)' $version_page = Invoke-WebRequest -Uri $versions -UseBasicParsing if ($version_page.Content -match $verRe) { - $version32 = $Matches[1] + $version32 = $Matches[1].Trim('V ') } @{