mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Fix delete thumbs
This commit is contained in:
parent
ea5d148d9c
commit
6fa7cb627e
2 changed files with 2 additions and 2 deletions
|
@ -7,6 +7,7 @@ require_once $global['systemRootPath'] . 'objects/video.php';
|
|||
if (!isCommandLineInterface()) {
|
||||
return die('Command Line only');
|
||||
}
|
||||
ob_end_flush();
|
||||
$checkIfIsCorrupted = intval(@$argv[1]);
|
||||
echo "checkIfIsCorrupted = $checkIfIsCorrupted".PHP_EOL;
|
||||
$users_ids = array();
|
||||
|
@ -23,7 +24,6 @@ if ($res != false) {
|
|||
$filename = $row['filename'];
|
||||
Video::deleteThumbs($filename, true, $checkIfIsCorrupted);
|
||||
echo "{$total}/{$count} Thumbs deleted from {$row['title']}".PHP_EOL;
|
||||
ob_flush();
|
||||
}
|
||||
} else {
|
||||
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue