Duplicati: query Github API
This commit is contained in:
parent
9aa9aa42b3
commit
c61174ac3a
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class Duplicati extends PatchBase {
|
||||||
parent::__construct('Duplicati Team', 'Duplicati', 'https://www.duplicati.com/download');
|
parent::__construct('Duplicati Team', 'Duplicati', 'https://www.duplicati.com/download');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://updates.duplicati.com/beta/latest-installers.js'))
|
if ($this->fetch_json('https://api.github.com/repos/duplicati/duplicati/releases/latest'))
|
||||||
return $this->parse('/"version": "([\d\.]+)"/');
|
return $this->parse_json('tag_name', '/(.+)_stable/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue