mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Add a command line to move all the video to the CDN
This commit is contained in:
parent
b61bd55264
commit
c5b6ded255
1 changed files with 2 additions and 0 deletions
|
@ -28,10 +28,12 @@ foreach ($videos as $value) {
|
||||||
echo "{$count}/{$total} Moving {$global['webSiteRootURL']}v/{$value['id']} {$value['title']}".PHP_EOL;
|
echo "{$count}/{$total} Moving {$global['webSiteRootURL']}v/{$value['id']} {$value['title']}".PHP_EOL;
|
||||||
if(!empty($value['sites_id'])){
|
if(!empty($value['sites_id'])){
|
||||||
echo "sites_id is not empty {$value['sites_id']}".PHP_EOL;
|
echo "sites_id is not empty {$value['sites_id']}".PHP_EOL;
|
||||||
|
ob_flush();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if($value['status'] !== Video::$statusActive){
|
if($value['status'] !== Video::$statusActive){
|
||||||
echo "The video status is not active {$value['status']}".PHP_EOL;
|
echo "The video status is not active {$value['status']}".PHP_EOL;
|
||||||
|
ob_flush();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue