diff --git a/automatic/calibre/update.ps1 b/automatic/calibre/update.ps1 index 5db63af9df7..2fab09e7bb9 100644 --- a/automatic/calibre/update.ps1 +++ b/automatic/calibre/update.ps1 @@ -1,7 +1,7 @@ import-module au Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1" -$releases = 'https://download.calibre-ebook.com/6.html' +$releases = 'https://download.calibre-ebook.com/7.html' function global:au_BeforeUpdate { Get-RemoteFiles -Purge -NoSuffix @@ -29,7 +29,7 @@ function global:au_GetLatest { $download_page = Invoke-WebRequest -Uri $releases $versionHyperlink = $download_page.links | Select-Object -First 1 - if ($versionHyperlink.Title -notmatch 'Release (6[\d\.]+)' ) { throw "Calibre version 6.x not found on $releases" } + if ($versionHyperlink.Title -notmatch 'Release (7[\d\.]+)' ) { throw "Calibre version 7.x not found on $releases" } $version = $versionHyperlink.InnerText $url64 = 'https://download.calibre-ebook.com//calibre-64bit-.msi'