diff --git a/modules/Avidemux.php b/modules/Avidemux.php index 54085da..b605282 100644 --- a/modules/Avidemux.php +++ b/modules/Avidemux.php @@ -5,8 +5,8 @@ class Avidemux extends PatchBase { parent::__construct('Mean', 'Avidemux', 'http://avidemux.sourceforge.net/download.html'); } function check() : bool { - if ($this->fetch('http://avidemux.sourceforge.net/download.html')) - return $this->parse('/avidemux_([\d\.]+)\.tar\.gz/'); + if ($this->fetch_json('https://sourceforge.net/projects/avidemux/best_release.json')) + return $this->parse_json('filename', '/^\/avidemux\/(.+)\//'); return false; } } diff --git a/modules/Minidlna.php b/modules/Minidlna.php index 777a8c9..0a6f3a0 100644 --- a/modules/Minidlna.php +++ b/modules/Minidlna.php @@ -5,8 +5,8 @@ class Minidlna extends PatchBase { parent::__construct('Justin Maggard', 'ReadyMedia', 'https://sourceforge.net/projects/minidlna/files/'); } function check() : bool { - if ($this->fetch('https://sourceforge.net/projects/minidlna/files/latest/download')) - return $this->parse('/
\s*minidlna-([\d\.]+)\.tar\.gz\s*<\/div>/'); + if ($this->fetch_json('https://sourceforge.net/projects/minidlna/best_release.json')) + return $this->parse_json('filename', '/^\/minidlna\/(.+)\//'); return false; } } diff --git a/modules/ProjectLibre.php b/modules/ProjectLibre.php index c6e2d82..ba7a385 100644 --- a/modules/ProjectLibre.php +++ b/modules/ProjectLibre.php @@ -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('/
\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; } }