This seems like a very odd issue to me.
I have kodi 17, brand new install on ubuntu 16.04.04. Brand new install of both.
For some reason, Kodi.. is not respecting .nomedia files at all. My normal pattern is to create a folder named DONOTSCAN and in those directories I put different versions of a file. For instance I might want a 1080 version picked up by the library, but keep an older 480 version because I like the translation better — I just only want to show one version in the library/
I have an itty bitty shell script that then adds a .nomedia file to that dir and any subdirectories under it.
Do not scan creator script
So here is a listing of a folder
drwxrwxrwx 1 nobody users 4096 Feb 23 08:12 .
drwxrwxrwx 1 nobody users 25 Feb 23 08:11 ..
-rw-rw-rw- 1 nobody users 0 Feb 23 08:12 .nomedia
-rw-rw-rw- 1 nobody users 237854720 Aug 11 2006 Turn A Gundam – 1×01 – Howling to the Moon..avi
-rw-rw-rw- 1 nobody users 237873152 Aug 11 2006 Turn A Gundam – 1×02 – The Coming Of Age Ceremony.avi
-rw-rw-rw- 1 nobody users 236761088 Aug 11 2006 Turn A Gundam – 1×03 – After The Ceremony.avi
To kodi, that path is : smb://TOWER/UNRAID/Anime/TV Shows/Gundam Collection/Correct Century/Turn A Gundam/DONOTSCAN/Turn A Gundam – 1×01 – Howling to the Moon..avi
However, it does not obey the “.nomedia file”
kodi.log
It clearly shows it do this..
19:21:17.879 T:139737649142144 DEBUG: VideoInfoScanner: Found episode match smb://TOWER/UNRAID/Anime/TV Shows/Gundam Collection/Correct Century/Turn A Gundam/DONOTSCAN/Turn A Gundam – 1×01 – Howling to the Moon..avi (s1e1) [[\\/\._ \[\(-]([0-9]+)x([0-9]+(??:[a
-i]|\.[1-9])(?![0-9]))?)([^\\/]*)$]
In the past.. I would get a message in the log that it found a .nomedia file so it was skipping this directory.
Oddly to me.. if I set the folder to none, tell it to delete the items… then open the context menu and set the folder to “Exclude from updates” the items come back if I scan. So it doesn’t seem to be obeying _any iota_ of the code in itself to … skip this directory.
I have even created the advancedsettings.xml and inserted this into it, and tested it.. absolutely nothing.
<video>
<excludetvshowsfromscan>
<regexp>[!-._ \\/]DONOTSCAN[-._ \\/]</regexp>
<regexp>[!-._ \\/]sample[-._ \\/]</regexp>
</excludetvshowsfromscan>
<excludefromscan>
<regexp>-trailer</regexp>
<regexp>[!-._ \\/]DONOTSCAN[-._ \\/]</regexp>
<regexp>[!-._ \\/]sample[-._ \\/]</regexp>
</excludefromscan>
</video>
The folders in question have 50 items in there that should scan in, with 50 in the DONOTSCAN areas that should be ignored. Yet upon scan completion I have all 100 items.
I’m kinda baffled.
Any guesses on what I can do here?
Thanks,
-kanth