diff --git a/modules/DokuWiki.php b/modules/DokuWiki.php index 135e868..969e822 100644 --- a/modules/DokuWiki.php +++ b/modules/DokuWiki.php @@ -5,8 +5,8 @@ class DokuWiki extends PatchBase { parent::__construct('Andreas Gohr', 'DokuWiki', 'https://download.dokuwiki.org/'); } function check() : bool { - if ($this->fetch_json('https://api.github.com/repos/dokuwiki/dokuwiki/releases/latest')) - return $this->parse_json('tag_name'); + if ($this->fetch('https://www.dokuwiki.org/changes')) + return $this->parse('/Release ([\d-]+[a-z]? (\"|\xE2\x80\x9C)[A-Za-z ]+(\"|\xE2\x80\x9D))/'); return false; } } diff --git a/modules/ESPurna.php b/modules/ESPurna.php index 52b5858..e3d4cc1 100644 --- a/modules/ESPurna.php +++ b/modules/ESPurna.php @@ -6,7 +6,7 @@ class ESPurna extends PatchBase { } function check() : bool { if ($this->fetch_json('https://api.github.com/repos/xoseperez/espurna/releases/latest')) - return $this->parse_json('tag_name', '/github(.+)/'); + return $this->parse_json('tag_name'); return false; } } diff --git a/modules/OpenVPN.php b/modules/OpenVPN.php index c0ae1e6..f2d9b73 100644 --- a/modules/OpenVPN.php +++ b/modules/OpenVPN.php @@ -5,8 +5,8 @@ class OpenVPN extends PatchBase { parent::__construct('OpenVPN Inc.', 'OpenVPN', 'https://openvpn.net/community-downloads/'); } function check() : bool { - if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/releases/latest')) - return $this->parse_json('tag_name'); + if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/tags')) + return $this->parse_json('name'); return false; } }