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:
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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue