Blender: parse directory listing due to bot protection
This commit is contained in:
parent
132cf3c958
commit
8dc42740e0
2 changed files with 15 additions and 14 deletions
|
|
@ -1,14 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
class Blender extends PatchBase {
|
|
||||||
function __construct() {
|
|
||||||
parent::__construct('Blender Foundation', 'Blender', 'https://www.blender.org/download/');
|
|
||||||
}
|
|
||||||
function check() : bool {
|
|
||||||
if ($this->fetch('https://www.blender.org/download/'))
|
|
||||||
return $this->parse('_//www\.blender\.org/download/release/Blender[\d\.]+/blender-([\d\.]+)-windows-x64\.msi_');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
15
modules/Blender45.php
Normal file
15
modules/Blender45.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Blender45 extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Blender Foundation', 'Blender', 'https://www.blender.org/download/');
|
||||||
|
$this->patch->setBranch('4.5');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://download.blender.org/release/Blender4.5/'))
|
||||||
|
return $this->parse('/>blender-([\d\.]+)\.sha256</', true);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue