IMDB Trailer advice needed.

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
billyad2000 Offline
Media Companion Founder
Posts: 727
Joined: Oct 2007
Reputation: 17
Post: #1
This is with regard to my XBMC Media Companion Program.

Link To Thread

Some people are asking me to add the ability to scrape trailer URLs from IMDB. It is here that I need some help.

After scraping a movie using XBMC it returns the following url for the trailer -

http://www.totaleclips.com/Player/Bounce...&type=.flv

My question is this -

How and where is this information gathered. I have been through every IMDB page I can think of looking for somewhere that will allow me to get a link like this and to be quite honest I am baffled.

I am very new to scrapers and I would appreciate it greatly if someone could point me in the right direction.
(This post was last modified: 2011-02-25 13:20 by billyad2000.)
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,748
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #2
http://www.imdb.com/title/tt0448157/trailers

seems like you could parse after /imdbid/trailers..

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.
If you don't have the time to read them, please don't take the time to post in this forum!
For troubleshooting and bug reporting please make sure you read this first.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #3
yeah, we chain into the /trailers page and fetch the url from there
find quote
billyad2000 Offline
Media Companion Founder
Posts: 727
Joined: Oct 2007
Reputation: 17
Post: #4
That's how far I get then I bump into my problem.

I can only find links to another page containing the trailer, i.e.

/rg/VIDEO_TITLE/GALLERY/video/screenplay/vi2291335449/

when I could use /screenplay/vi2291335449/trailer.flv or something similar

This is also a very different url to what XBMC produces of totaleclips.com/Player/Bounce.aspx?eclipid=e35335&bitrateid=314&vendorid=102&type=.flv for the same movie
(This post was last modified: 2011-02-25 13:20 by billyad2000.)
find quote
billyad2000 Offline
Media Companion Founder
Posts: 727
Joined: Oct 2007
Reputation: 17
Post: #5
No matter, i've sussed it.

Thanx for your help
(This post was last modified: 2011-02-25 13:21 by billyad2000.)
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,748
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #6
you should really narrow this one down, since i seen a few movies not having any trailers on imdb, just links to another page.. then you might want to have like 5 or 6 pages you support scraping on.. or if its not on imdb, then just let the user know that there was no trailer found, but they can manually enter a trailer of their own.

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.
If you don't have the time to read them, please don't take the time to post in this forum!
For troubleshooting and bug reporting please make sure you read this first.
find quote