1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Embed cols

This commit is contained in:
DanieL 2022-04-08 19:10:23 -03:00
parent 4314087928
commit facda502cb

View file

@ -106,10 +106,12 @@ while($hasNewContent){
_error_log("importChannel MP4: key = {$key} key2 = {$key2} APIURL = $APIURL");
download($value2, $value->filename, $path);
}
foreach ($value->videos->mp3 as $key2=>$value2) {
_error_log("importChannel MP3: key = {$key} key2 = {$key2} APIURL = $APIURL");
download($value2, $value->filename, $path);
if(!empty($value->videos->mp3)){
_error_log("importChannel MP3: {$value->videos->mp3} APIURL = $APIURL");
download($value->videos->mp3, $value->filename, $path);
}
$video->setStatus(Video::$statusActive);
}else{
_error_log("importChannel: ERROR Video NOT saved");