From 22b069ab8e708a4a34e25f252c376ee06e2fd69c Mon Sep 17 00:00:00 2001 From: robmoss2k <15984835+robmoss2k@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:33:08 +0000 Subject: [PATCH] Fix version extraction in calibre update script to correctly parse version number --- automatic/calibre/update.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automatic/calibre/update.ps1 b/automatic/calibre/update.ps1 index 752288c0719..f864cd9be39 100644 --- a/automatic/calibre/update.ps1 +++ b/automatic/calibre/update.ps1 @@ -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//calibre-64bit-.msi' $url64 = $url64 -replace '', $version