Citrix Workspace app LTSR: parse detail page

This commit is contained in:
Steffen Lange 2022-09-05 15:21:11 +02:00
parent 40c8393404
commit fdca291cfe

View file

@ -2,12 +2,12 @@
class CitrixWorkspaceAppLTSR extends PatchBase { class CitrixWorkspaceAppLTSR extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Citrix', 'Workspace App', 'https://www.citrix.com/downloads/workspace-app/workspace-app-for-windows-long-term-service-release/'); parent::__construct('Citrix', 'Workspace App', 'https://www.citrix.com/downloads/workspace-app/workspace-app-for-windows-long-term-service-release/workspace-app-for-windows-LTSR.html');
$this->patch->setBranch('LTSR'); $this->patch->setBranch('LTSR');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.citrix.com/downloads/workspace-app/workspace-app-for-windows-long-term-service-release/')) if ($this->fetch('https://www.citrix.com/downloads/workspace-app/workspace-app-for-windows-long-term-service-release/workspace-app-for-windows-LTSR.html'))
return $this->parse('/>Citrix Workspace app for Windows LTSR ([\d\.]+)</'); return $this->parse('/<p>Version: ([\d\.]+)<\/p>/');
return false; return false;
} }
} }