Compare commits

...

3 commits

Author SHA1 Message Date
Steffen Lange
63c64c0bdc Add Picard 2025-10-27 12:10:13 +01:00
Steffen Lange
78a40550ad Add Glaxnimate 2025-10-27 12:10:01 +01:00
Steffen Lange
c61174ac3a Duplicati: query Github API 2025-10-27 12:09:35 +01:00
3 changed files with 30 additions and 2 deletions

View file

@ -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;
}
}

14
modules/Glaxnimate.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Glaxnimate extends PatchBase {
function __construct() {
parent::__construct('Mattia Basaglia', 'Glaxnimate', 'https://glaxnimate.org/download/');
}
function check() : bool {
if ($this->fetch_json('https://invent.kde.org/api/v4/projects/graphics%2Fglaxnimate/repository/tags'))
return $this->parse_json('name');
return false;
}
}
?>

14
modules/Picard.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Picard extends PatchBase {
function __construct() {
parent::__construct('MetaBrainz Foundation', 'Picard', 'https://picard.musicbrainz.org/downloads/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/metabrainz/picard/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>