7-Zip: use Github api
This commit is contained in:
parent
96154af588
commit
81687b2adf
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue