Move video over to software_id
This commit is contained in:
@@ -38,8 +38,15 @@ class CatalogMove extends Command
|
||||
abort(500,sprintf('No class [%s]',$this->argument('type')));
|
||||
|
||||
foreach ($class::where('filename','LIKE','%INCOMING%')->get() as $o) {
|
||||
if ($o->scanned AND ! $o->duplicate AND ! $o->remove AND ($x=$o->moveable()) === TRUE) {
|
||||
$this->warn(sprintf('Ignoring [%s], it is not readable',$o->file_path()));
|
||||
// Catch any files that are already there.
|
||||
if ($o->moveable() === 1) {
|
||||
$o->duplicate = TRUE;
|
||||
$o->save();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (! $o->scanned OR $o->duplicate OR $o->remove OR ($x=$o->moveable()) !== TRUE) {
|
||||
$this->warn(sprintf('Ignoring [%s]...',$o->file_path()));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user