"trailermatching" issue - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: "trailermatching" issue (/showthread.php?tid=97357) |
"trailermatching" issue - HughDouglas - 2011-03-21 I'm currently using a server to serve content to both my Networked Media Tank & AppleTV (with XBMC on it). I've been running YAMJ for almost two years now, so all of my movie files conform to YAMJ file structure. The structure is as follows: Code: Movies So, to keep the current file structure, I decided to try the "trailermatching" in the advanced settings. This snippet is from the XBMC log: Code: NOTICE: Contents of special://profile/advancedsettings.xml are... Before I implemented the regular expression, trailers were being read as separate movies by XBMC. I implemented the regex above, and the trailers were not read as separate movies, however they were not attributed to the corresponding movies. In fact, I noticed that the trailers were nowhere to be found. In order to debug this, I created a directory called "Movies-Temp" with one movie in it. I added the source to XBMC, enabled XBMC debug mode & restarted the ATV2. I update the library, review the log & see the following: Code: DEBUG: ExcludeFileOrFolder: File 'smb://192.168.1.25/1/Movies-Temp/Avatar/Avatar.Trailer.mp4' excluded. (Matches exclude rule RegExp:'(.*?)(\.Trailer)(\.[^.]+)$') I did not have that regular expression set to exclude the file; the regular expression was set for trailer matching. I tried adding the same regular expression as an "excludefromscan" in addition to the "trailermatching" regular expression to test if I needed that before the trailer can be matched. I used this regular expression (snippet from XBMC log): Code: NOTICE: Contents of special://profile/advancedsettings.xml are... Is there something I'm missing/forgetting? RE: "trailermatching" issue - iceman1000 - 2012-03-22 Hi there! I have somewhat a similar issue. I would like to use trailers from within a "trailer" directory. And I don't want to put every movie in a new directory. Reason is I want to use my movie library with a WDTV parallel to the XBMC installation. My structure is like this: Movie/ ---Movie1.avi ---Movie2.avi ---Movie3.avi ---Movie4.avi ---Trailers/ ------Movie1-trailer.avi ------Movie2-trailer.avi ------Movie3-trailer.avi and so on. Does anyone have a hint which regexp I could use for trailermatching? I thought it should be something like: <regexp>(Trailer/)(.*?)(-trailer)(\.[^.]+)$</regexp> But this won't work. Any ideas? Thanks! RE: "trailermatching" issue - iceman1000 - 2012-03-23 Running on a windows system I also tried <regexp>(Trailer\/)(.*?)(-trailer)(\.[^.]+)$</regexp> and <regexp>(Trailer\\)(.*?)(-trailer)(\.[^.]+)$</regexp> (need to escape the '\' I think) but it still won't find the trailers in my trailers-folder... |