home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MyTrailers plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mzemina" data-source="post: 21749" data-attributes="member: 11677"><p>Well I found that on Xlobby (a competing HTPC frontend that can look like MP with its skinning method but does not have TV card support) there has been a plugin developer who has created a Apple Trailer Movie Importer. Note: Xloby has a spider they created for various purposes. The thread for this can be found <a href="http://www.xlobby.com/forum/viewtopic.php?t=1891&postdays=0&postorder=asc&start=0" target="_blank">here</a></p><p></p><p> [code]</p><p>--------------------------------------------------------------------------------</p><p> </p><p>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. </p><p></p><p>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? </p><p></p><p>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. </p><p></p><p>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. </p><p></p><p>The application will do the following: </p><p>- Connect to Apple and locate the list of movie studios </p><p>- For each movie studio, grab each page of trailers details </p><p>- For each trailer, download the cover art (if it does not exist) </p><p>- For each trailer, grab the URL for the small, medium or large QuickTime Movie </p><p></p><p>It will then update the database file and populate it with: </p><p>- Trailer Movie Title </p><p>- Cover Art (locally downloaded) </p><p>- Studio Name </p><p>- Genre(s) </p><p>- Actors </p><p>- Rating </p><p>- Direct URL to the QuickTime preview </p><p></p><p>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. </p><p></p><p>For example: </p><p>MovieTrailers.exe /db=trailers.xml /covers=Covers </p><p>MovieTrailers.exe /db=trailers.xml /covers=Covers /newonly /size=large </p><p></p><p>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. </p><p></p><p>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. </p><p></p><p> </p><p></p><p>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 </p><p></p><p>If you agree with the above, you can download from here and enjoy! </p><p></p><p>Release log: </p><p></p><p>1.0 : Initial release </p><p>1.1 : Updated to include /newonly flag </p><p>1.2 : Fixed code bugs, added /size flag, included source code archive</p><p>_________________</p><p>Jonathan </p><p>[/code]</p><p><a href="http://www.xlobby.com/forum/viewtopic.php?p=11887" target="_blank">Xoap Weather Plugin</a></p><p><a href="http://www.xlobby.com/forum/viewtopic.php?t=1891" target="_blank">Apple Movie Trailer Importer</a></p><p></p><p>Also note on that thread that is has been said today (Oct 7th): </p><p></p><p>If you ask nicely, maybe the developer will share his code? Or maybe if he sees what MP has done, you maybe able to convince him to come over to MP to develop plugins?</p><p></p><p>Mike</p></blockquote><p></p>
[QUOTE="mzemina, post: 21749, member: 11677"] Well I found that on Xlobby (a competing HTPC frontend that can look like MP with its skinning method but does not have TV card support) there has been a plugin developer who has created a Apple Trailer Movie Importer. Note: Xloby has a spider they created for various purposes. The thread for this can be found [url=http://www.xlobby.com/forum/viewtopic.php?t=1891&postdays=0&postorder=asc&start=0]here[/url] [code] -------------------------------------------------------------------------------- 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 [/code] [url=http://www.xlobby.com/forum/viewtopic.php?p=11887]Xoap Weather Plugin[/url] [url=http://www.xlobby.com/forum/viewtopic.php?t=1891]Apple Movie Trailer Importer[/url] Also note on that thread that is has been said today (Oct 7th): If you ask nicely, maybe the developer will share his code? Or maybe if he sees what MP has done, you maybe able to convince him to come over to MP to develop plugins? Mike [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MyTrailers plugin
Contact us
RSS
Top
Bottom