From 57058539c73ec838ae6aefc2d0d3b6e59c79e19d Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Tue, 20 Feb 2024 15:35:53 +0100 Subject: [PATCH] Duplicity: parse Gitlab releases --- modules/Duplicity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Duplicity.php b/modules/Duplicity.php index 4ca9c9a..b3f4fb9 100644 --- a/modules/Duplicity.php +++ b/modules/Duplicity.php @@ -5,8 +5,8 @@ class Duplicity extends PatchBase { parent::__construct('Kenneth Loafman', 'Duplicity', 'http://duplicity.gitlab.io/duplicity-web/'); } function check() : bool { - if ($this->fetch_json('https://gitlab.com/api/v4/projects/12450835/repository/tags')) - return $this->parse_json('name', '/rel\.(.+)/'); + if ($this->fetch_json('https://gitlab.com/api/v4/projects/12450835/releases')) + return $this->parse_json('tag_name', '/rel\.(.+)/'); return false; } }