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');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://updates.duplicati.com/beta/latest-installers.js'))
|
||||
return $this->parse('/"version": "([\d\.]+)"/');
|
||||
if ($this->fetch_json('https://api.github.com/repos/duplicati/duplicati/releases/latest'))
|
||||
return $this->parse_json('tag_name', '/(.+)_stable/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue