2018-09-30, 15:39
(2018-09-30, 04:32)Karellen Wrote:OK. I tested by playing a movie, selecting trailer, removing movie, re-adding, then selecting trailer again. Debug log shows that it's getting trailer from youtube each time:Quote:But from what I gather you're mistaken about the naming.I am speaking generally as I don't know your full setup, so tell me how the video file is named. Of course there is one way to know for sure... test it.
:09:02:21.160 T:4080517712 DEBUG: StartScript - calling plugin YouTube('plugin://plugin.video.youtube/','2','?action=play_video&videoid=XXXXX')]
Trailer file file name is (and I have many in this format):
Movie.YYYY.720p.BluRay.x264-blah[TRAILER-Theatrical Trailer].mp4
(relavent) AdvancedSettings are:
:
<advancedsettings>
<video>
<excludefromscan>
<regexp>[-\._ ](extrafanart|trailer|extrathumbs)[-\._ ]</regexp>
</excludefromscan>
<excludefromscan action="append">
<regexp>/extras/</regexp>
<regexp>[\\/]extras[\\/]</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>[-._ \\/](extrafanart|trailer|extrathumbs)[-._ \\/]</regexp>
</excludefromlisting>
<excludetvshowsfromscan action="append">
<regexp>/extras/</regexp>
<regexp>[\\/]extras[\\/]</regexp>
</excludetvshowsfromscan>
</video>
<trailermatching>
<regexp>(.*?)(trailer)(}|]|\))?(\.[^.]+)$</regexp>
</trailermatching>
</advancedsettings>]
I'm assuming problem with advancedsettings. Help appreciated on that specifically. I took the above "excludefromscan" and "excludefromlisting" parts directly from the recommendations regarding Extras addon in the wiki. I'm assuming there's a problem with the specific exclusion of scanning or listing "trailer". What's the difference between "scanning" and "listing"?
FWIW, I see no debug log indication of Kodi looking for a trailer when (re-)adding the movie, let alone finding one. I wonder if there's a way to query the database (via SSH?) to see if a trailer was found for a movie, instead of trying to inspect the logs?
Ultimate goals are of course:
1. make sure "trailers" don't get stacked onto main feature (thus the exclusion settings);
2. have "Extras" folder available with official Extras addon,
3. Have Kodi play local trailers that match the given regex, in this case ones that may end with "trailer].ext" or "trailer).ext" etc. (the regex exp. given above should do that with that title).
I have 2 features requests in all this as well:
1. Kodi should look in local folders when chosing to watch a trailer – at least by option – even if one wasn't found initially when adding to library. Wouldn't be a big resource use problem, as chosing to watch a trailer would be infrequent. (Removing and readding movies just to achieve this seems unnecessary)
2. Kodi should also look in "Extras" folder for local trailers