diff --git a/modules/Duplicati.php b/modules/Duplicati.php index e5f2801..96aa5ac 100644 --- a/modules/Duplicati.php +++ b/modules/Duplicati.php @@ -5,8 +5,8 @@ class Duplicati extends PatchBase { parent::__construct('Duplicati Team', 'Duplicati', 'https://www.duplicati.com/download'); } function check() : bool { - if ($this->fetch_json('https://api.github.com/repos/duplicati/duplicati/releases/latest')) - return $this->parse_json('tag_name', '/(.+)_stable/'); + if ($this->fetch('https://updates.duplicati.com/beta/latest-installers.js')) + return $this->parse('/"version": "([\d\.]+)"/'); return false; } } diff --git a/modules/Glaxnimate.php b/modules/Glaxnimate.php deleted file mode 100644 index 07a0f45..0000000 --- a/modules/Glaxnimate.php +++ /dev/null @@ -1,14 +0,0 @@ -fetch_json('https://invent.kde.org/api/v4/projects/graphics%2Fglaxnimate/repository/tags')) - return $this->parse_json('name'); - return false; - } -} - -?> diff --git a/modules/Picard.php b/modules/Picard.php deleted file mode 100644 index 8ddfb69..0000000 --- a/modules/Picard.php +++ /dev/null @@ -1,14 +0,0 @@ -fetch_json('https://api.github.com/repos/metabrainz/picard/releases/latest')) - return $this->parse_json('tag_name'); - return false; - } -} - -?>