VueScan: parse HTML page

This commit is contained in:
Steffen Lange 2022-03-12 22:33:56 +01:00
parent ddd5202264
commit 61e4d15407

View file

@ -5,8 +5,8 @@ class VueScan extends PatchBase {
parent::__construct('Hamrick Software', 'VueScan', 'https://www.hamrick.com/download.html');
}
function check() : bool {
if ($this->fetch('https://d1t4l16dpbiwrj.cloudfront.net/menu.min.js'))
return $this->parse('/var ve="([\d\.]+)";/');
if ($this->fetch('https://www.hamrick.com/'))
return $this->parse('/"softwareVersion": "([\d\.]+)"/');
return false;
}
}