Thank you waeberd and Zipperzip for the links. Maybe, one day, I can make a contribution to the wonderfull world of MP. :wink:
<string>
<id>5900</id>
<value>Bandes Annonces</value>
</string>
<string>
<id>5901</id>
<value>Voir les bandes annonces</value>
</string>
<string>
<id>5902</id>
<value>Quelles bandes annonces ?</value>
</string>
<string>
<id>5903</id>
<value>Les dernières ajoutées</value>
</string>
<string>
<id>5904</id>
<value>Les plus regardées</value>
</string>
<string>
<id>5905</id>
<value>Toutes les bandes annonces</value>
</string>
<string>
<id>5906</id>
<value>Bandes Annonces</value>
</string>
<string>
<id>5907</id>
<value>Clips</value>
</string>
<string>
<id>5908</id>
<value>Plus...</value>
</string>
<string>
<id>5909</id>
<value>Impossible d'accéder à la vidéo !</value>
</string>
--------------------------------------------------------------------------------
One of the things I have been wanting to have in my HTPC is instant access to a library of movie trailers that I can pick to view on-demand.
After spending time at the Apple Movie Trailers pages I noticed recently that they had made the entire collection available via iTunes. This immediately caught my attention because I already knew how iTunes communications worked and that it used XML. Well, XML had to be better than trying to spider a web page right?
So I grabbed iTunes and with my trusty network monitoring tools I went about tracing the requests and the XML data being returned. The XML is unfortunately designed to create a screen and not to communicate raw data (it sorely lacks meta information) but it is structured and that means XPATH queries can be used instead of ugly regular expressions that break a lot.
The result is my release of the Movie Trailer Import utility for Xlobby. You DO NOT need iTunes since I go directly to the backend.
The application will do the following:
- Connect to Apple and locate the list of movie studios
- For each movie studio, grab each page of trailers details
- For each trailer, download the cover art (if it does not exist)
- For each trailer, grab the URL for the small, medium or large QuickTime Movie
It will then update the database file and populate it with:
- Trailer Movie Title
- Cover Art (locally downloaded)
- Studio Name
- Genre(s)
- Actors
- Rating
- Direct URL to the QuickTime preview
This application takes four command line parameters, one for the xlobby trailers database (/db=) the directory to store the downloaded cover art (/covers=), a /newonly flag to limit the spidering to just the new trailers section and a /size flag to specify small, medium or large trailers.
For example:
MovieTrailers.exe /db=trailers.xml /covers=Covers
MovieTrailers.exe /db=trailers.xml /covers=Covers /newonly /size=large
If you do a full spider the result will be an xlobby database with about 700+ trailers in it. After that, using the /newonly should keep the database current.
I use Media Player Classic with Quicktime Alternative launched from Xlobby to actually play the trailer from the online location. This application does NOT download the actual trailer itself just the direct URL to it.
A WORD OF CAUTION: I doubt Apple will look kindly on the spidering of their iTunes data and the cover art is copyrighted. I cannot advise you or take any responsibility for the use of this application. Although I have tried to formulate flexible XPATH queries, the application may well break if Apple changes iTunes or the structure of their XML
If you agree with the above, you can download from here and enjoy!
Release log:
1.0 : Initial release
1.1 : Updated to include /newonly flag
1.2 : Fixed code bugs, added /size flag, included source code archive
_________________
Jonathan
the tool seems to not working since a few days, maybe apple change the structure of the web site.... for every movies we have an error :"unable to process trailer: the remote server returned an error (4004) not found"
spraycleaner said:Since the new CVS builds from 09.10 and fourth the MYTrailers plugin has some text errors, it does not exist in the main menu as a name its only blank! When entering the "blank-named program" it still runs but no text anywhere, I can still pic-up trailers from the net and watch them!
Replacing the Core.DLL does NOT work, then ALL the menus is gone :-( so its better to leave the 0.2.0RC1 at about CVS Build 08.10 2005 and NOT any further at the moment...
frodo said:nice plugin!
i'll put it in cvs tonight when i'm back home
frodo