release: v4.8.0
parent
67340b0f75
commit
d81887bf65
|
@ -33,7 +33,7 @@ Memories is a *batteries-included* photo management solution for Nextcloud with
|
||||||
1. Run `php ./occ memories:index` to generate metadata indices for existing photos.
|
1. Run `php ./occ memories:index` to generate metadata indices for existing photos.
|
||||||
1. Open the 📷 Memories app in Nextcloud and set the directory containing your photos.
|
1. Open the 📷 Memories app in Nextcloud and set the directory containing your photos.
|
||||||
]]></description>
|
]]></description>
|
||||||
<version>4.7.2</version>
|
<version>4.8.0</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="radialapps@gmail.com" >Varun Patil</author>
|
<author mail="radialapps@gmail.com" >Varun Patil</author>
|
||||||
<namespace>Memories</namespace>
|
<namespace>Memories</namespace>
|
||||||
|
|
|
@ -268,6 +268,11 @@ class Index extends Command
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check path contains IMDB then skip
|
||||||
|
if (false !== strpos($folderPath, 'IMDB')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$nodes = $folder->getDirectoryListing();
|
$nodes = $folder->getDirectoryListing();
|
||||||
|
|
||||||
foreach ($nodes as $i => &$node) {
|
foreach ($nodes as $i => &$node) {
|
||||||
|
@ -287,16 +292,21 @@ class Index extends Command
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function parseFile(File &$file, bool &$refresh): void
|
private function parseFile(File &$file, bool &$refresh): bool
|
||||||
{
|
{
|
||||||
// Process the file
|
// Process the file
|
||||||
$res = $this->timelineWrite->processFile($file, $refresh);
|
$res = $this->timelineWrite->processFile($file, $refresh);
|
||||||
if (2 === $res) {
|
if (2 === $res) {
|
||||||
++$this->nProcessed;
|
++$this->nProcessed;
|
||||||
} elseif (1 === $res) {
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (1 === $res) {
|
||||||
++$this->nSkipped;
|
++$this->nSkipped;
|
||||||
} else {
|
} else {
|
||||||
++$this->nInvalid;
|
++$this->nInvalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue