Optimised scanning and importing
This commit is contained in:
@@ -23,7 +23,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
// Any photo saved, queue it to be moved.
|
||||
Photo::saved(function($photo) {
|
||||
if (! $photo->duplicate AND ($x=$photo->moveable()) === TRUE)
|
||||
if ($photo->scanned AND ! $photo->duplicate AND ! $photo->remove AND ($x=$photo->moveable()) === TRUE)
|
||||
{
|
||||
Log::info(sprintf('%s: Need to Move [%s]',__METHOD__,$photo->id.'|'.serialize($x)));
|
||||
$this->dispatch((new PhotoMove($photo))->onQueue('move'));
|
||||
@@ -32,7 +32,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
// Any video saved, queue it to be moved.
|
||||
Video::saved(function($video) {
|
||||
if (! $video->duplicate AND ($x=$video->moveable()) === TRUE)
|
||||
if ($video->scanned AND ! $video->duplicate AND ! $video->remove AND ($x=$video->moveable()) === TRUE)
|
||||
{
|
||||
Log::info(sprintf('%s: Need to Move [%s]',__METHOD__,$video->id.'|'.serialize($x)));
|
||||
$this->dispatch((new VideoMove($video))->onQueue('move'));
|
||||
|
Reference in New Issue
Block a user