Add youtube-dl

This commit is contained in:
Steffen Lange 2020-04-13 00:10:08 +02:00
parent 8daed2b519
commit b212e65f9c

14
modules/YoutubeDL.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class YoutubeDL extends PatchBase {
function __construct() {
parent::__construct('youtube-dl Authors', 'youtube-dl', 'https://yt-dl.org/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/ytdl-org/youtube-dl/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>