Exclude archives from audio

I have OSMC mapped to an SMB share for music which also has some zip and rar achieves in. I noticed that that it tries scan inside these files. I want to avoid it doing that and have the following:

osmc@osmc:~/.kodi/userdata$ cat advancedsettings.xml
<advancedsettings>
        <audio>
                <excludefromscan>
                        <!-- Don't scan archives -->
                        <regexp>(.+\.zip|.+\.rar)</regexp>
                </excludefromscan>
        </audio>
</advancedsettings>

I’m not sure if this is correct - could someone confirm? As it looks like it’s still trying to look inside such files.

I’m running a fresh install of OSMC with Kodi 17.

We believe this is a Kodi issue or a specific Kodi function and as such you should look at addressing the issue there. We are unable to resolve your issue. If you do believe that this is an OSMC specific issue, please let us know.

The regex looks ok though I haven’t tried it. If it’s not working you could simplify it to (\.zip$)
where the $ means “ends with” and put one regex per line, maybe kodi doesn’t like ‘|’

If you never want to access content (video/audio/subtitles) from inside archives then you can disable:
“Support browsing into archives” in library/filelists setting.