bpatrik/pigallery2

Suggestion: Hide irrelevant subfolders

occino opened this issue · 10 comments

Hi,
I'm very interessed in an option to hide irrelevant subfolders withing the images folder which does not contain any photos and videos. This way folders like '.Spotlight-V100' would not appear as well and leads to a better navigation.

Best regards from Berlin,
Nico

Hi Nico,

Sorry, but I'm not considering adding a feature like that, but feel free to jump in.
I'm reading the files and folders here:


You can customize the app for your own taste.
If you feel to implement a versatile solution (like a ignore list in the config, or supporting .ignore file in the folders) I would consider merging it.

Best,
Patrik

Hi,

Thanks to tmorley2000, this will part of the next release.

Best,
Patrik

Hi, I'm trying to use this functionality to hide various folders (.recycle, .thumbnails, etc.) but can't seem to get it to work.
I assume the functionality is enabled by using the "Exclude Folder List" and "Exclude File List" under Index section in advanced settings?

I've tried to enable this in v 1.8 docker image (can only do via direct config.json edit) and 1.8.1 docker image nightly stretch (via config interface), but neither seems to work, as folders are still shown. I have also tried to re-run index after setting exclude rules (tried both folder name and file name) but doesn't hide folders in gallery view.

Am I misunderstanding something?

Cheers
Nik
p.s. thanks for a great gallery application!

Hi @nikolajhendel,

I ran into a similar issue as you, however what you need to do is run the indexing after adding a folder to the exclude list, it will then not show in the gallery. Hope this helps.

-Sam

Yes, reindexing is needed after changing the exclusion list.

Did a reindexing but I still see all folders, although I have added a .ignore file to most root folders (1970-1979, ...) and after that did not work added those to the Exclude Folder List:
grafik

What might I do wrong?

I just triggered the re-indexing (in v1.9.3) but it still does not work.

image

Sorry, bumping this closed thread because I'm experiencing the same behavior on my instance (v1.9.5 via Docker image). Excluded folders are still shown on the gallery no matter how many times I reindex the database.

Sorry, bumping this closed thread because I'm experiencing the same behavior on my instance (v1.9.5 via Docker image). Excluded folders are still shown on the gallery no matter how many times I reindex the database.

For me it worked with v1.9.5
Have you tried the "Run now: Gallery reset" and restarted the server afterwards?

Have you tried the "Run now: Gallery reset" and restarted the server afterwards?

Yes it finally worked but it was really hard to achieve. The main issue was that my gallery has thousands of pictures and videos so reindexing is very long (even if I'm using a x64 PC as host).
Using reset + reindex + restart was the way to go. Thanks!