mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
23 lines
563 B
PHP
23 lines
563 B
PHP
<?php
|
|
//streamer config
|
|
require_once '../videos/configuration.php';
|
|
|
|
if(!isCommandLineInterface()){
|
|
return die('Command Line only');
|
|
}
|
|
$global['rowCount'] = 99999;
|
|
$total = Video::getTotalVideos("",false, true, true, false, false);
|
|
$videos = Video::getAllVideosLight("", false, true, false);
|
|
$count = 0;
|
|
foreach ($videos as $value){
|
|
$count++;
|
|
$updated = Video::updateFilesize($value['id']);
|
|
echo "{$count}/{$total} (".($updated?"success":"fail").") [{$value['id']}] {$value['title']}".PHP_EOL;
|
|
ob_flush();
|
|
}
|
|
|
|
die();
|
|
|
|
|
|
|
|
|