Kodi Community Forum

Full Version: advanced settings - folder to not analyse....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have this advancedsettings in my Kodi roaming...>
Quote:<advancedsettings version="1">
<settings>
    <setting id="extras-folder" value= "extras"|"Extras"|"1900 Extras"|"1900 Extras [VO]"|"1900 VOSTFR"|"1900 VO" />
    <setting id="blacklisted_directories" value= "sample|subs|extras|Extras|1900 Extras|1900 Extras [VO]|1900 VOSTFR|1900 VO" />
    <setting id="blacklisted_extensions" value= ".bin|.dat|.url|.zip|.vob|.ifo" />
    <setting id="blacklisted_words" value="!Doc!" />
    <setting id="scan_recursively" value="true" />
</settings>
<video>
  <excludefromscan>
    <regexp>-trailer</regexp>
    <regexp>[!-._ \\/]sample[-._ \\/]</regexp>
    <regexp>[-\._ ](extrafanart|trailer|extrathumbs)[-\._ ]</regexp>
  </excludefromscan>
  <excludefromlisting>
      <regexp>[-._ \\/](extrafanart|trailer|extrathumbs)[-._ \\/]</regexp>
  </excludefromlisting>
  <excludefromscan action="append">
      <regexp>/extras/Extras/1900 Extras/1900 VO et Manquants/1900 Extras [VO]/1900 VOSTFR/1900 VO</regexp>
      <regexp>[\\/]extras|Extras|1900 Extras|1900 VO et Manquants|1900 Extras [VO]|1900 VOSTFR|1900 VO[\\/]</regexp>
  </excludefromscan>
  <excludetvshowsfromscan action="append">
      <regexp>/extras/Extras/</regexp>
      <regexp>[\\/]extras|Extras[\\/]</regexp>
  </excludetvshowsfromscan>
</video>
</advancedsettings>

So , as you can see, I have a lot of folders and subfolders in my collection... But for the folders who are called :

extras|Extras|1900 Extras|1900 VO et Manquants|1900 Extras [VO]|1900 VOSTFR|1900 VO

I would like that he don't analyse that...

ANd I analyze all my movies by local information only.

Thanks a lot if you ca help me and sorry for my english....
not too sure about your regex?

Seems like you want something like:
regex:
[\\/](extras|Extras|1900 Extras|1900 VO et Manquants|1900 Extras [VO]|1900 VOSTFR|1900 VO)[\\/]

scott s.
.
Thanks for the answer but I don't understand very well "code" and so I come here to know what I have to put exactly ? All the line, or some are in error ?

It's only for the movie, not for serial...
Not sure what you are using the
xml:
<settings></settings>
for.

What you want I think is simply:
xml:
<video>
  <excludefromscan action="append">
     <regexp>[\\/](extras|Extras|1900 Extras|1900 VO et Manquants|1900 Extras [VO]|1900 VOSTFR|1900 VO)[\\/]</regexp>
  </excludefromscan>
</video>

so \extras\
/Extras/
\1900 Extras/
etc match.  Note also \1900 Extras V\ and \1900 Extras O\ match if that's what you want?

scott s.
.
Thanks for trying help me but unfortunatly, I don't understand very well...

I see that you put one line who is in my advancedsetting on the line red.

But some other line are important for the word in blue

But It's me who had add somes parts to try what I would like... green
Quote:<advancedsettings version="1">
<settings>
    <setting id="extras-folder" value= "extras"|"Extras"|"1900 Extras"|"1900 Extras [VO]"|"1900 VOSTFR"|"1900 VO" />
    <setting id="blacklisted_directories" value= "sample|subs|extras|Extras|1900 Extras|1900 Extras [VO]|1900 VOSTFR|1900 VO" />
    <setting id="blacklisted_extensions" value= ".bin|.dat|.url|.zip|.vob|.ifo" />
    <setting id="blacklisted_words" value="!Doc!" />
    <setting id="scan_recursively" value="true" />
</settings>
<video>
  <excludefromscan>
    <regexp>-trailer</regexp>
    <regexp>[!-._ \\/]sample[-._ \\/]</regexp>
    <regexp>[-\._ ](extrafanart|trailer|extrathumbs)[-\._ ]</regexp>
  </excludefromscan>
  <excludefromlisting>
      <regexp>[-._ \\/](extrafanart|trailer|extrathumbs)[-._ \\/]</regexp>
  </excludefromlisting>
  <excludefromscan action="append">
      <regexp>/extras/Extras/1900 Extras/1900 VO et Manquants/1900 Extras [VO]/1900 VOSTFR/1900 VO</regexp>
      <regexp>[\\/]extras|Extras|1900 Extras|1900 VO et Manquants|1900 Extras [VO]|1900 VOSTFR|1900 VO[\\/]</regexp>
  </excludefromscan>
  <excludetvshowsfromscan action="append">
      <regexp>/extras/Extras/</regexp>
      <regexp>[\\/]extras|Extras[\\/]</regexp>
  </excludetvshowsfromscan>
</video>
</advancedsettings>
But in fact perhaps Have I to say what I really would like ...

So I try. I have a lot of folders and subfolders and there are somes who are called : 
extras
Extras
1900 Extras
1900 VO et Manquants
1900 Extras [VO]
1900 VOSTFR
1900 VO

And all this folders I would that when I analyse all, that there are not anlysed ...

I don't know what is regexp and how it works, I try from a lot of different source to do it myself...

Is there too much line ?

So I want to keep some expression that I think are important :

subs
"blacklisted_extensions" = ".bin|.dat|.url|.zip|.vob|.ifo" /> cause for my Full DVD, it's a problem with missing movies addon...


exclude :

trailer
sample
extrafanart
extrathumbs


Hope that you understand me in "my english" and thanks a lot for your help !!!
perhaps a simpler solution would be better here

use the '.nomedia' file method
if you create an empty file in a folder and name it '.nomedia' kodi will not scan that folder

details here https://kodi.wiki/view/Updating_or_remov...ude_Folder
Ok I found the solution, the log say me error with Line 3 et I do again the code :

here is if it can help somebody :
Quote:<advancedsettings version="1">
<settings>
    <setting id="blacklisted_extensions" value= ".bin|.dat|.url|.zip|.vob|.ifo" />
    <setting id="scan_recursively" value="true" />
</settings>
<video>
  <excludefromscan>
    <regexp>[-\._ ]sample|extrafanart|trailer|extrathumbs)[-\._ ]</regexp>
  </excludefromscan>
  <excludefromlisting>
      <regexp>[-._ \\/](sample|extrafanart|trailer|extrathumbs)[-._ \\/]</regexp>
  </excludefromlisting>
  <excludefromscan action="append">
      <regexp>[\\/]extras|Extras|1900 Extras|1900 VO et Manquants|1900 Extras [VO]|1900 VOSTFR|1900 VO[\\/]</regexp>
  </excludefromscan>
  <excludetvshowsfromscan action="append">
      <regexp>[\\/]extras|Extras[\\/]</regexp>
  </excludetvshowsfromscan>
</video>
</advancedsettings>
So... Thanks It's solved
Thread marked solved.