Hi everybody,
I have a fodler named ‘Fotos’. It contains a .plexignore File which excludes the CR2 files.
This folder has a subdirectory ‘Kirche’ which itself has some subdirectories:
…
Fotos
…
Kirche
CR2
Erstkommunion
Fototermin
Koki2010
'Kirche contains a .plexignore with exactly the following contents:
# PlexServer ignoriert die angegebenen Verzeichnisse und Dateien
# Grundsätzlich sollen CR2-Dateien ignoriert werden. Es gibt dazu JPGs
# Syntax
# Ignore all files with "trailer" in the name
# *trailer*
# Ignore files with the extension ".cr2"
# *.cr2
# Ignore directories called "Modified"
# Modified/*
# Ignore all ".tif" files in the "thumbnails" subdirectory
# thumbnails/*.tif
CR2/*
No, the file does not have additional extension…
I would assume that all folders in the folder ‘Kirche’ are scanned but the folder named CR2.
If I scan the ‘Fotos’-Folder, the ‘Kirche’ Folder is scanned with all subdirectories, including the CR2 Folder.
On the other hand, if I create a new Media Library containing only the ‘Kirche’ folder, the scan does not find any valid files, not in the folders I’d like to scan nor in the CR2-Folder.
I am totally puzzled. can anybody help me?
Thank you for your time
Ole
Note: Edited by Moderator.
@trumpy81 said:
Your .plexignore file should contain the following:
*CR2/*
It should be placed in your ‘Kirche’ folder.
If that’s correct, then the documentation is wrong. The OP’s .plexignore file looks exactly correct according to the documentation. If the .plexignore file is in the ‘Kirche’ folder as the OP says, then that leading ‘*’ should not be necessary.
@“ole@weigelt.net” You first said there was a .plexignore file in ‘Fotos.’ Then you said it was in ‘Kirche.’ Are there two .plexignore files? If there are, as far as I know that’s okay, as long as they don’t contain conflicting statements.
@beckfield: Yes, I have several .plexignore files in my structure. In the root directory, I exclude all CR2 files and in the subdirectories files and further subdirectories I do not want to publish on Plex Server. as far as I can say, there are no conflicts.
*CR/* works, but as someone posted in another thread, it makes the scan process very slow. For me, that is kind of a problem, because my library contains more than 500.000 photos.
I have tried:
/mnt/volume4/DeepDish/Fotos/Kirche/Erstkommunion/iPod Photo Cache/*
/volume4/DeepDish/Fotos/Kirche/Erstkommunion/Nune/*
but none of those worked. Is there another way of avoiding the trunking at the beginnig of the line?
I would not expect those examples to work. Plex, according to the documentation, is supposed to evaluate the exclusion statements relative to the folder containing the .plexignore file, so if .plexignore is in ‘Kirche,’ the statements you tried would be evaluated like this:
/mnt/volume4/DeepDish/Fotos/Kirche/mnt/volume4/DeepDish/Fotos/Kirche/Erstkommunion/iPod Photo Cache/*
/mnt/volume4/DeepDish/Fotos/Kirche//volume4/DeepDish/Fotos/Kirche/Erstkommunion/Nune/*
Obviously wrong. (However, that should mean that the leading ‘*’ should be unnecessary, so between the code and the documentation, there are some big discrepancies here.)
If it were me, I would want to have as few .plexignore files as possible, if only to avoid confusion. If all of your .cr2 files are in the /CR2 folders, and the folders are successfully ignored, there should be no reason to also exclude *.cr2. Conversely, if your .cr2 files are mingled throughout the other folders (alongside .jpgs, I presume), you shouldn’t have to exclude the *CR2/ folders is the *.cr2 exclusion is working.
By doing both, this may be contributing to the slow performance when scanning.