From 81687b2adfff2103598d9961d89e0cac65e1f1c9 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Fri, 31 May 2024 19:08:54 +0200 Subject: [PATCH] 7-Zip: use Github api --- modules/SevenZip.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/SevenZip.php b/modules/SevenZip.php index 36479e1..437ce7a 100644 --- a/modules/SevenZip.php +++ b/modules/SevenZip.php @@ -5,8 +5,8 @@ class SevenZip extends PatchBase { parent::__construct('Igor Pavlov', '7-Zip', 'https://www.7-zip.org/download.html'); } function check() : bool { - if ($this->fetch('https://www.7-zip.org/download.html')) - return $this->parse('/Download 7-Zip ([\d\.]+) \([\d-]+\)/'); + if ($this->fetch_json('https://api.github.com/repos/ip7z/7zip/releases/latest')) + return $this->parse_json('tag_name'); return false; } }