Filius: parse webpage

This commit is contained in:
Steffen Lange 2024-02-26 20:31:15 +01:00
parent 6e45a3dbf9
commit f966b1b3b7

View file

@ -5,8 +5,8 @@ class Filius extends PatchBase {
parent::__construct('Stefan Freischlad', 'Filius', 'https://www.lernsoftware-filius.de/Herunterladen'); parent::__construct('Stefan Freischlad', 'Filius', 'https://www.lernsoftware-filius.de/Herunterladen');
} }
function check() : bool { function check() : bool {
if ($this->fetch_json('https://gitlab.com/api/v4/projects/18855527/repository/tags')) if ($this->fetch('https://www.lernsoftware-filius.de/Herunterladen'))
return $this->parse_json('name'); return $this->parse('_//www\.lernsoftware-filius\.de/downloads/Setup/filius-([\d\.]+)\.zip_');
return false; return false;
} }
} }