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
6a78357f23
commit
c083f711c8
1 changed files with 3 additions and 2 deletions
|
@ -25,7 +25,7 @@ $count = 0;
|
|||
|
||||
foreach ($videos as $value) {
|
||||
$count++;
|
||||
echo "{$count}/{$total} Moving video {$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'])){
|
||||
echo "sites_id is not empty {$value['sites_id']}".PHP_EOL;
|
||||
continue;
|
||||
|
@ -35,7 +35,8 @@ foreach ($videos as $value) {
|
|||
continue;
|
||||
}
|
||||
|
||||
CDNStorage::moveLocalToRemote($value['id']);
|
||||
//CDNStorage::moveLocalToRemote($value['id']);
|
||||
echo "{$count}/{$total} Moved done {$global['webSiteRootURL']}v/{$value['id']} {$value['title']}".PHP_EOL;
|
||||
ob_flush();
|
||||
}
|
||||
echo PHP_EOL." Deleting cache ... ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue