1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-04-25 10:42:33 -03:00
parent c60b4fb91e
commit fd8d9e1b46

View file

@ -11,6 +11,7 @@ ob_end_flush();
function download($url, $filename, $path, $forceDownload = false) {
if(empty($url) || preg_match('/view.img/', $url)){
echo ("importChannel::download ERROR on url {$url}").PHP_EOL;
return false;
}
$parts = explode("/{$filename}/", $url);