Skip to content

Commit

Permalink
Fix version extraction in calibre update script to correctly parse ve…
Browse files Browse the repository at this point in the history
…rsion number
  • Loading branch information
robmoss2k committed Dec 17, 2024
1 parent d5d5b88 commit 22b069a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automatic/calibre/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function global:au_GetLatest {
$versionHyperlink = $download_page.links | Select-Object -First 1
if ($versionHyperlink.Title -notmatch 'Release (7[\d\.]+)' ) { throw "Calibre version 7.x not found on $releases" }

$version = $versionHyperlink.InnerText
$version = ($versionHyperlink.outerHTML) -replace '<[^>]+>'
$url64 = 'https://download.calibre-ebook.com/<version>/calibre-64bit-<version>.msi'
$url64 = $url64 -replace '<version>', $version

Expand Down

0 comments on commit 22b069a

Please sign in to comment.