Scribus: parse response header
This commit is contained in:
parent
d2c906cdc7
commit
9d42d9682a
1 changed files with 3 additions and 3 deletions
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
class Scribus extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Scribus Team', 'Scribus', 'https://www.scribus.net/downloads/stable-branch/');
|
||||
parent::__construct('Scribus Team', 'Scribus', 'https://www.scribus.net/downloads/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.scribus.net/downloads/'))
|
||||
return $this->parse('_//sourceforge\.net/projects/scribus/files/scribus/([\d\.]+)/_');
|
||||
if ($this->fetch_json('https://sourceforge.net/projects/scribus/best_release.json'))
|
||||
return $this->parse_json('filename', '/^\/scribus\/(.+)\//');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue