diff options
-rw-r--r-- | lib/Controller/AlbumsController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php index 4a475dca..678ea0a7 100644 --- a/lib/Controller/AlbumsController.php +++ b/lib/Controller/AlbumsController.php @@ -142,6 +142,11 @@ class AlbumsController extends Controller { return []; } + // Ignore folder with a .noimage or .nomedia node + if ($folder->nodeExists('.noimage') || $folder->nodeExists('.nomedia')) { + return []; + } + $nodes = $folder->getDirectoryListing(); foreach ($nodes as $node) { |