diff --git a/modules/Duplicati.php b/modules/Duplicati.php index 96aa5ac..e5f2801 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('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; } } diff --git a/modules/Glaxnimate.php b/modules/Glaxnimate.php new file mode 100644 index 0000000..07a0f45 --- /dev/null +++ b/modules/Glaxnimate.php @@ -0,0 +1,14 @@ +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 new file mode 100644 index 0000000..8ddfb69 --- /dev/null +++ b/modules/Picard.php @@ -0,0 +1,14 @@ +fetch_json('https://api.github.com/repos/metabrainz/picard/releases/latest')) + return $this->parse_json('tag_name'); + return false; + } +} + +?>