1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Add mp3 import

This commit is contained in:
DanieL 2022-04-08 07:22:26 -03:00
parent b51a09520d
commit 196df8d9fe

View file

@ -103,7 +103,11 @@ while($hasNewContent){
download($value->images->thumbsGif, $value->filename, $path); download($value->images->thumbsGif, $value->filename, $path);
foreach ($value->videos->mp4 as $key2=>$value2) { foreach ($value->videos->mp4 as $key2=>$value2) {
_error_log("importChannel: key = {$key} key2 = {$key2} APIURL = $APIURL"); _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); download($value2, $value->filename, $path);
} }
$video->setStatus(Video::$statusActive); $video->setStatus(Video::$statusActive);