Kodi ignores excluded directories from advancedsettings.xml

My music library is stored on a NAS, exclusion of directories for scanning the library has always worked in Kodi versions prior 17.0.
Now these exclusions are simply ignored completely.

This is the concerned section in my advancedsettings.xml:

<advancedsettings>
  <audio> 
  <excludefromscan>
      <regexp>smb://QNAP/MUSIK/MP3/Charts/</regexp>
      <regexp>^rar://.*</regexp>
      <regexp>^zip://.*</regexp>
  </excludefromscan>	
  </audio>
</advancedsettings>

And this is from the sources.xml:

<music>
    <source>
       <name>QNAP</name>
       <path pathversion="1">smb://QNAP/Musik/MP3/</path>
       <allowsharing>true</allowsharing>
     </source>
</music>

Any help would be appreciated. Iā€™m on Kodi 17.6.

I doubt this is a valid regexp

It worked for years that way, what would be the correct way to ignore directories from scanning?
Apart from that it turned out that advancedsettings.xml is ignored completely, also this setting for example:

<musiclibrary>
   <songinfoduration>10</songinfoduration>  
   <recentlyaddeditems>200</recentlyaddeditems>
</musiclibrary>

Use a regex tester on the Internet to verify

That could indicate a XML error (eg closing section missing

1 Like

That solved the problem, thank you very much!

Can you tell us the solution please?

He highlighted his solution.

Use a regex tester. Also check your XML (maybe use an xml tester).