Skip to content

Commit

Permalink
Merge pull request #2483 from tunisiano187/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm authored Jul 8, 2024
2 parents b2a9be1 + 396c169 commit 3d21c05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automatic/gom-player/update.ps1
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 ')
}

@{
Expand Down

0 comments on commit 3d21c05

Please sign in to comment.