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

Add a command line to move all the video to the CDN

This commit is contained in:
Daniel 2021-10-30 16:35:26 -03:00
parent b61bd55264
commit c5b6ded255

View file

@ -28,10 +28,12 @@ foreach ($videos as $value) {
echo "{$count}/{$total} Moving {$global['webSiteRootURL']}v/{$value['id']} {$value['title']}".PHP_EOL;
if(!empty($value['sites_id'])){
echo "sites_id is not empty {$value['sites_id']}".PHP_EOL;
ob_flush();
continue;
}
if($value['status'] !== Video::$statusActive){
echo "The video status is not active {$value['status']}".PHP_EOL;
ob_flush();
continue;
}