Trying to exclude non music folder
#1
Using Kodi build 17.4 Compiled Aug 22 2017


Under Media Settings > Library > Music.... > Music on 4 (long press) doesn't seem to have a "Set Content" or "Change Content" option to be able to "Exclude selected folders from scans" like Video.

Following the instructions I found

7 Excluding directories/folders

Kodi can exclude certain directories from the library all together using a few different methods.
Use the "Exclude folder from scans" option when the content type is set to "none"
Place a file (even an empty one) named .nomedia in the directory you want to exclude.
Note: Windows users should name the file .nomedia. which will trick Windows into using the proper .nomedia name.
Folders with -trailer or sample in the name will be automatically skipped. For the exact pattern match, see here.
Users can also add additional patterns to be excluded by using the advancedsettings.xml tag <excludefromscan>

I can't exclude the folders under the first option, I tried putting .nomedia and .nomedia. in the folder I want to exclude and that didn't work either (unless it did ignore it and I need the file in the thousands of sub folders) and finally I tried making the advancedsettings.xml file and placing it in ..../kodi/userdata folder.

I am not 100% sure how to use this file and put this text into the file.

<advancedsettings>
<setting>value</setting>

<audio>
<!-- Amount of headroom Kodi should use above the maximum volume level, in decibels. Defaults to 0, valid values 0, 6, 12. -->
<headroom>0</headroom>
<!-- Default audio player: paplayer or dvdplayer -->
<defaultplayer>paplayer</defaultplayer>
<!-- Regular expressions that if evaluated to true won't be added to library. -->
<excludefromscan>
<regexp>[-\._ ](smb://WAREHOUSE/Volume_4/ZZ. Not Music/*.*)[-\._ ]</regexp>
</excludefromscan>
<!-- Regular expressions that if evaluated to true won't be displayed in Files View -->
<excludefromlisting>
<regexp>[-\._ ](smb://WAREHOUSE/Volume_4/ZZ. Not Music/*.*)[-\._ ]</regexp>
</excludefromlisting>
<!-- Amount of gain (dB) to be applied to AC3 streams that have been mixed-down to 2 channels. Default is 12.0. Valid values are: -96.0 to 96.0. -->
<ac3downmixgain>12.0</ac3downmixgain>
<!-- Minimum percentage that has to be played before it is considered for incrementing in the Top 100 database view, or for last.fm submittal -->
<playcountminimumpercent>99</playcountminimumpercent>
<!-- Whether to use Dynamic Range Compression (DRC) on AC3 streams. 1.0 is "full" compression, as defined by the audio track's metadata, which is recommended for "basic" sound systems such as the internal speakers on a TV. 0.0 is no compression at all, which is recommended for people with nice multi-speaker sound systems. -1.0 (default) defaults to whatever ffmpeg uses, which is currently the same as 1.0. This has no effect if passthrough is enabled for AC3. -->
<applydrc>-1.0</applydrc>
<!-- default values for limiter/compressor -->
<limiterhold>0.025</limiterhold>
<!-- default values for limiter/compressor -->
<limiterrelease>0.1</limiterrelease>
</audio>

<setting>value</setting>
</advancedsettings>

Can someone please tell me if I got this bit right "smb://WAREHOUSE/Volume_4/ZZ. Not Music/*.*" because it still continues to try scan that folder and subfolders.
Reply


Messages In This Thread
Trying to exclude non music folder - by Bad Wolf - 2017-09-23, 09:50
Logout Mark Read Team Forum Stats Members Help
Trying to exclude non music folder0