VueScan: parse HTML page
This commit is contained in:
parent
ddd5202264
commit
61e4d15407
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class VueScan extends PatchBase {
|
||||||
parent::__construct('Hamrick Software', 'VueScan', 'https://www.hamrick.com/download.html');
|
parent::__construct('Hamrick Software', 'VueScan', 'https://www.hamrick.com/download.html');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://d1t4l16dpbiwrj.cloudfront.net/menu.min.js'))
|
if ($this->fetch('https://www.hamrick.com/'))
|
||||||
return $this->parse('/var ve="([\d\.]+)";/');
|
return $this->parse('/"softwareVersion": "([\d\.]+)"/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue