Separate fetch and fetch_json helper funcs
This commit is contained in:
parent
4a613a0d3b
commit
62a9f6f0c8
56 changed files with 63 additions and 58 deletions
|
|
@ -5,7 +5,7 @@ class OSP extends PatchBase {
|
|||
parent::__construct('Deamos', 'Open Streaming Platform', 'https://openstreamingplatform.com/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://gitlab.com/api/v4/projects/Deamos%2Fflask-nginx-rtmp-manager/releases', true))
|
||||
if ($this->fetch_json('https://gitlab.com/api/v4/projects/Deamos%2Fflask-nginx-rtmp-manager/releases'))
|
||||
return $this->parse_json('tag_name');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue