Exclude Folder

Hi all,

CE 9.0.3 on Odroid N2. Movies/Videos on NAS.

My Video Folder contains all my videos, the videos are not in separate folders. Settings are:

Within the Video Folder I have a folder called Test Files:

The Test Files folder contains Video and Audio sample test files and I do not want these to be included in the Movies Library. So I added a .nomedia file to that folder, however this is not excluding those files.

Is there a way to exclude this folder from the library?

TIA

Greg

.nomedia should work I think.

I also use it, but if I remember correctly, there was a “trick” to how to create that file. Especially if you’re using Windows. I think it was a trick to prevent Windows from creating it as a text file or something like that.

Someone else might have better explanation

You can use the excludefromscan/excludefromlisting settings : https://kodi.wiki/view/Advancedsettings.xml#excludefromscan

I’m using it to exclude some folders on my NAS :

<excludefromscan>
                        <regexp>\@eaDir</regexp>
                        <regexp>\@eadir</regexp>   
                        <regexp>\@EADIR</regexp>         
                        <regexp>\#recycle</regexp>
                        <regexp>-trailer</regexp>
                        <regexp>[!-._ \\/]sample[-._ \\/]</regexp>
                </excludefromscan>
                <excludefromlisting>           
                        <regexp>\@eaDir</regexp>
                        <regexp>\@eadir</regexp>
                        <regexp>\@EADIR</regexp>
                        <regexp>\.DS_Store</regexp>
                        <regexp>-trailer</regexp>
                        <regexp>[!-._ \\/]sample[-._ \\/]</regexp>
                        <regexp>\#recycle</regexp>
                </excludefromlisting>

I created the file via SSH using the touch command, so that should be OK.