Wednesday, 24 April 2013

Remove those @eaDir folders from your XBMC Photo Library once and for all

There are lots of posts about the annoying '@eaDir' directories that are created when you use NFS on the Synology NAS. I've written about deleting them but unfortunately they end up coming back as they are part of the Synology indexing service.

I've also highlighted how to exclude them from scans under XBMC which will prevent them appearing in Movies and Music and this works well but I haven't been able to find a way of excluding them from Photos; until now.

I don't know how long the <pictureexcludes> option has been available in the XBMC advancedsettings.xml configuration options but it seems adding this will prevent those directories from displaying in all of your photo subdirectories. Awesome! One very happy camper now.

Here's what I added:
<advancedsettings>
<pictureexcludes>
  <regexp>@eaDir</regexp>
  <regexp>@EADIR</regexp>
</pictureexcludes>
</advancedsettings>
The before and after shots are shown below on my Xbian Raspberry Pi build. I've also tested it on my ION based Openelec build with a shared (Synology NAS) database and it works their too.



So my whole advancedsettings.xml file located in the userdata folder now looks like this. No more '@eaDir' directories anywhere!!
<advancedsettings>
<video>
<excludefromscan>
<regexp>@eaDir</regexp>
<regexp>@EADIR</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>@eaDir</regexp>
<regexp>@EADIR</regexp>
</excludefromlisting>
</video>
<audio>
<excludefromscan>
<regexp>@eaDir</regexp>
<regexp>@EADIR</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>@eaDir</regexp>
<regexp>@EADIR</regexp>
</excludefromlisting>
</audio>
<pictureexcludes>
  <regexp>@eaDir</regexp>
  <regexp>@EADIR</regexp>
</pictureexcludes>

</advancedsettings>