Grafana: Query website instead of GitHub
This commit is contained in:
parent
8e1386bfa6
commit
80a7b42171
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class Grafana extends PatchBase {
|
||||||
parent::__construct('Grafana Labs', 'Grafana', 'https://grafana.com/grafana/download');
|
parent::__construct('Grafana Labs', 'Grafana', 'https://grafana.com/grafana/download');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch_json('https://api.github.com/repos/grafana/grafana/releases/latest'))
|
if ($this->fetch('https://grafana.com/grafana/download'))
|
||||||
return $this->parse_json('tag_name');
|
return $this->parse('/selected="" value="([\d\.]+)"/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue