use SourceForge release API

This commit is contained in:
Steffen Lange 2022-09-21 18:12:40 +02:00
parent d17d6af38d
commit b83e852315
3 changed files with 6 additions and 6 deletions

View file

@ -5,8 +5,8 @@ class ProjectLibre extends PatchBase {
parent::__construct('ProjectLibre Inc.', 'ProjectLibre', 'https://www.projectlibre.com/product/1-alternative-microsoft-project-open-source');
}
function check() : bool {
if ($this->fetch('https://sourceforge.net/projects/projectlibre/files/latest/download'))
return $this->parse('/<div class="file-name">\s*projectlibre-([\d\.]+)\.jar\s*<\/div>/');
if ($this->fetch_json('https://sourceforge.net/projects/projectlibre/best_release.json'))
return $this->parse_json('filename', '/^\/ProjectLibre\/(.+)\//');
return false;
}
}