Compare commits

..

No commits in common. "63c64c0bdc8a07d4dde2db952f65ecc6596ff38b" and "9aa9aa42b329c11cf73168d040a96f9751ae685c" have entirely different histories.

3 changed files with 2 additions and 30 deletions

View file

@ -5,8 +5,8 @@ class Duplicati extends PatchBase {
parent::__construct('Duplicati Team', 'Duplicati', 'https://www.duplicati.com/download'); parent::__construct('Duplicati Team', 'Duplicati', 'https://www.duplicati.com/download');
} }
function check() : bool { function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/duplicati/duplicati/releases/latest')) if ($this->fetch('https://updates.duplicati.com/beta/latest-installers.js'))
return $this->parse_json('tag_name', '/(.+)_stable/'); return $this->parse('/"version": "([\d\.]+)"/');
return false; return false;
} }
} }

View file

@ -1,14 +0,0 @@
<?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;
}
}
?>

View file

@ -1,14 +0,0 @@
<?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;
}
}
?>