From c61174ac3a0d541b8fb9c89add00d68d95877e80 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 27 Oct 2025 12:09:35 +0100 Subject: [PATCH] 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; } }