From c61174ac3a0d541b8fb9c89add00d68d95877e80 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 27 Oct 2025 12:09:35 +0100 Subject: [PATCH 1/3] Duplicati: query Github API --- modules/Duplicati.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } From 78a40550ad7c1a41515c7fd70a84acc9e47ae27c Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 27 Oct 2025 12:10:01 +0100 Subject: [PATCH 2/3] Add Glaxnimate --- modules/Glaxnimate.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/Glaxnimate.php 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; + } +} + +?> From 63c64c0bdc8a07d4dde2db952f65ecc6596ff38b Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 27 Oct 2025 12:10:13 +0100 Subject: [PATCH 3/3] Add Picard --- modules/Picard.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/Picard.php 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; + } +} + +?>