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
123a1da7d4
commit
94cce063f8
1 changed files with 6 additions and 2 deletions
|
@ -22,8 +22,12 @@ if ($res != false) {
|
|||
foreach ($fullData as $key => $row) {
|
||||
$count++;
|
||||
$filename = $row['filename'];
|
||||
Video::deleteThumbs($filename, true, $checkIfIsCorrupted);
|
||||
echo "{$total}/{$count} Thumbs deleted from {$row['title']}".PHP_EOL;
|
||||
$totalDeleted = Video::deleteThumbs($filename, true, $checkIfIsCorrupted);
|
||||
if($totalDeleted){
|
||||
echo "{$total}/{$count} Thumbs deleted ($totalDeleted) from {$row['title']}".PHP_EOL;
|
||||
}else{
|
||||
echo "{$total}/{$count} Thumbs NOT deleted from {$row['title']}".PHP_EOL;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue