Compare commits

...

4 commits

Author SHA1 Message Date
7fe3791456 OPNsense: update regex 2025-03-29 23:14:43 +01:00
863d63e605 Paint.NET: update regex 2025-03-29 23:14:24 +01:00
9f8fb4e7fd Blender: update regex 2025-03-29 23:13:50 +01:00
83d8c15afe Add NewPipe 2025-03-29 23:13:05 +01:00
4 changed files with 17 additions and 3 deletions

View file

@ -6,7 +6,7 @@ class Blender extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.blender.org/download/')) if ($this->fetch('https://www.blender.org/download/'))
return $this->parse('/Download Blender ([\d\.]+)( LTS)?/'); return $this->parse('_//www\.blender\.org/download/release/Blender[\d\.]+/blender-([\d\.]+)-windows-x64\.msi_');
return false; return false;
} }
} }

14
modules/NewPipe.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class NewPipe extends PatchBase {
function __construct() {
parent::__construct('Team NewPipe', 'NewPipe', 'https://newpipe.net/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/TeamNewPipe/NewPipe/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>

View file

@ -6,7 +6,7 @@ class OPNsense extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://opnsense.org/download/')) if ($this->fetch('https://opnsense.org/download/'))
return $this->parse('/data-version=\'([\d.]+)\'/'); return $this->parse('/data-version="([\d.]+)"/');
return false; return false;
} }
} }

View file

@ -6,7 +6,7 @@ class PaintNet extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.getpaint.net/')) if ($this->fetch('https://www.getpaint.net/'))
return $this->parse('/<b>paint\.net\s+([\d\.]+)<\/b>/'); return $this->parse('/<b>Paint\.NET\s+([\d\.]+)<\/b>/');
return false; return false;
} }
} }