Kodi Community Forum

Full Version: Trailers being scanned as movies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm not really sure if this is a Aeon issue or a xbmc issue but thought I would start here first. I name my trailers as moviename-trailer.ext but when I update my library I get 2 copies of the movie, one of which is the trailer. I've been working around this issue by placing my trailers with my extras and if I want to watch them I just go to the "Extras" menu but I would really like to get them working properly. Anyone have any ideas?
@wgstarks, create advancedsettings.xml file and use this code for exclude trailers items from collection

Code:
<video>
  <excludefromscan>
    <regexp>-extras-</regexp>
    <regexp>/Extras/</regexp>
    <regexp>Extras</regexp>
    <regexp>/extras/</regexp>
    <regexp>extras</regexp>
    <regexp>-trailer</regexp>    
    <regexp>[\\/]Extras[\\/]</regexp>
    <regexp>[\\/]extras[\\/]</regexp>
  </excludefromscan>
  <excludetvshowsfromscan>
    <regexp>-extras-</regexp>
    <regexp>/Extras/</regexp>
    <regexp>Extras</regexp>
    <regexp>/extras/</regexp>
    <regexp>extras</regexp>
    <regexp>-trailer</regexp>
    <regexp>[\\/]Extras[\\/]</regexp>
    <regexp>[\\/]extras[\\/]</regexp>    
  </excludetvshowsfromscan>
</video>
Outstanding. Thanks. Figured I was missing something obvious. Appreciate you including the code for the Extras too.
(2013-11-27, 03:54)Wanilton Wrote: [ -> ]@wgstarks, create advancedsettings.xml file and use this code for exclude trailers items from collection

Code:
<video>
  <excludefromscan>
    <regexp>-extras-</regexp>
    <regexp>/Extras/</regexp>
    <regexp>Extras</regexp>
    <regexp>/extras/</regexp>
    <regexp>extras</regexp>
    <regexp>-trailer</regexp>    
    <regexp>[\\/]Extras[\\/]</regexp>
    <regexp>[\\/]extras[\\/]</regexp>
  </excludefromscan>
  <excludetvshowsfromscan>
    <regexp>-extras-</regexp>
    <regexp>/Extras/</regexp>
    <regexp>Extras</regexp>
    <regexp>/extras/</regexp>
    <regexp>extras</regexp>
    <regexp>-trailer</regexp>
    <regexp>[\\/]Extras[\\/]</regexp>
    <regexp>[\\/]extras[\\/]</regexp>    
  </excludetvshowsfromscan>
</video>




Hey with some tweaking could I make that stop finding "SAMPLE" files as well?
(2013-11-28, 12:21)AbRASiON Wrote: [ -> ]Hey with some tweaking could I make that stop finding "SAMPLE" files as well?

Yes. Any file names should be able to be excluded as long as the expressions are set correctly in the code. I believe this is case sensitive so you will need to include all variations.
hi

your write <video> ... </video>

shouldn't it be <videolibrary> ... </videolibrary> ?
You could test this with <videolibrary> I guess. I can confirm though that <video> works.