Old updates

This commit is contained in:
Deon George
2019-11-08 21:43:36 +11:00
parent cfc9bf5d9a
commit c723807b3f
8 changed files with 119 additions and 222 deletions

View File

@@ -58,24 +58,20 @@ class CatalogScan extends Command
$break = FALSE;
foreach ($x as $oo) {
// If this photo siganture matches another.
if ($o->signature == $oo->signature)
// And that photo is not marked as a duplicate
if (! $oo->duplicate)
{
// And that photo is not marked as a duplicate
if (! $oo->duplicate)
$o->duplicate = '1';
$this->warn(sprintf('Image [%s] marked as a duplicate',$o->file_path()));
// If the file signature also matches, we'll mark it for deletion
if ($oo->file_signature AND $o->file_signature == $oo->file_signature)
{
$o->duplicate = '1';
$this->warn(sprintf('Image [%s] marked as a duplicate',$o->file_path()));
// If the file signature also matches, we'll mark it for deletion
if ($oo->file_signature AND $o->file_signature == $oo->file_signature)
{
$this->warn(sprintf('Image [%s] marked for deletion',$o->file_path()));
$o->remove = '1';
}
break;
$this->warn(sprintf('Image [%s] marked for deletion',$o->file_path()));
$o->remove = '1';
}
break;
}
}
}