Trailer naming conventions in XBMC - a discovery that I thought I would share

  Thread Rating:
  • 1 Votes - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Tuckerdude Offline
Member
Posts: 66
Joined: Jun 2009
Reputation: 0
Thumbs Up  Trailer naming conventions in XBMC - a discovery that I thought I would share Post: #1
Hello again everyone,

This may or may not exist somewhere in some post, but I never saw it so I thought it might be useful to others. Ever since I first installed XBMC and then Aeon, I have been struggling with why one particular movie would just never get scraped properly (or even pickup and hand-made nfo file). The name of the movie is called "The Long, Long, Trailer" a funny movie with Lucille Ball and Desi Arnaz. After going through weeks of machinations, removing parts of the file name like the comma or the extra "long" from the name, it turns out that the problem was having the word "Trailer" in the name. It occurred to me just this morning that it may have something to with "Trailer" causing XBMC to assume it was a movie trailer and therefore would not pick up the nfo or do a proper scrape. So I removed the word "Trailer" from the name of the file and lo and behold, it scraped like a champ! So if you have any movies with that word in the title (there are a few such as Trailer Park Boys, Mickey's Trailer, Trailer Park Of Terror, Trailer Horn, etc) then you may need to remove that word from the name before you try to scrape it.

I just thought I would share my discovery and save anyone else going through the hair-pulling experience that I did.
find quote
smcnally75 Offline
Aeon Group
Posts: 981
Joined: Sep 2007
Post: #2
Interesting observation, but this has to do with XBMC and not Aeon. You should post this over in the general area so the developers can see if something can be done to fix the issue.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,520
Joined: Oct 2003
Reputation: 138
Post: #3
What is the exact filename?

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,701
Joined: May 2004
Reputation: 12
Post: #4
We should probably tighten up the trailer detection. Forcing moviename-trailer.ext isn't all that restrictive. Right now we match on "[-._ ](sample|trailer)[-._ ]".
find quote
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #5
I was bored so I tested this out...As a rule of thumb I lookup the movie in IMDB then name the folder to what IMDB goes by. So for this movie I used "The Long, Long Trailer (1953)"....Ember picked it up correctly. Unless I overlooked it (I deleted the created .nfo before using XBMC) XBMC missed it. I didn't even see a wierd new movie at all, but I was looking through 300 movies so I could have passed it.

**EDIT**

Even using the Ember .nfo XBMC still didn't scrape into the library.
(This post was last modified: 2009-07-04 04:02 by mcborzu.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,520
Joined: Oct 2003
Reputation: 138
Post: #6
Indeed, ideally we'd only match <separator>trailer if we also find the same movie file. The same can probably be applied to samples as well?

In either case, having the space in that regexp is plain silly.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Tuckerdude Offline
Member
Posts: 66
Joined: Jun 2009
Reputation: 0
Post: #7
Hi guys....thanks for taking a look at this! Looks like a bona-fide issue that could use some sorting out.

Happy 4th of July!!!
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,701
Joined: May 2004
Reputation: 12
Post: #8
I've made the changes in r21388. Let the bitching about trailers being added to the library commence!
find quote
nicoli_k Offline
Team-XBMC Forum Moderator
Posts: 659
Joined: May 2008
Reputation: 0
Location: USA
Post: #9
I'm using an xbox with r21829 and I just noticed that trailers being downloaded from the Trailer Addict plugin are being added to the library. They are being named "movie - trailer.flv" with one space before the dash and two spaces after the dash.

This is correctly picked up by the scraper as a trailer, but when scanning for new content, it's also picked up as a separate movie. If I manually rename it to movie-trailer.flv then there is no problem scanning as a trailer and it does not get picked up as a separate movie.

Since the trailer scraper picks up the form of movie - trailer.extension, shouldn't the movie scraper disregard this format? I rarely use the trailer feature so it's not really an issue for me, but I can see it being a problem with others.

To be fair, you did ask for it althekiller... :0)

When posting about a problem please submit a debug log to give you the best chance at getting an answer. It's easy, painless, and helps provide necessary information.
find quote