From 782a1143da12d4e0530e26e8aa1c790fe3f5f96f Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 10 Nov 2022 22:02:33 -0800 Subject: [PATCH] release: v4.7.0-alpha.4 --- appinfo/info.xml | 2 +- lib/Command/Index.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index a589cea32..e78887777 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -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. Open the 📷 Memories app in Nextcloud and set the directory containing your photos. ]]> - 4.7.0-alpha.1 + 4.7.0-alpha.4 agpl Varun Patil Memories diff --git a/lib/Command/Index.php b/lib/Command/Index.php index 4613a970b..389659464 100644 --- a/lib/Command/Index.php +++ b/lib/Command/Index.php @@ -264,6 +264,14 @@ private function parseFolder(Folder &$folder, bool &$refresh): void return; } + // skip 'IMDB' in path + if (false !== strpos($folderPath, 'IMDB')) { + $this->output->writeln('Skipping folder '.$folderPath.' because of IMDB'); + $this->previousLineLength = 0; + + return; + } + $nodes = $folder->getDirectoryListing(); foreach ($nodes as &$node) {