MyTrailers plugin (1 Viewer)

cedriclocqueneux

Portal Pro
March 14, 2005
55
0
Chalons en Champagne (France)
Hi !

The translation in french:

Code:
<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>

Thanks for this excellent plugin !
 

mzemina

Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,065
    14
    Tulsa, OK
    Home Country
    United States of America United States of America
    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 here

    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
    Xoap Weather Plugin
    Apple Movie Trailer Importer

    Also note on that thread that is has been said today (Oct 7th):
    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"

    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
     

    Koschel

    Retired Team Member
  • Premium Supporter
  • April 6, 2005
    1,044
    68
    Stuttgart
    Home Country
    Germany Germany
    German translation:


    <string><id>5900</id><value>Meine Trailer</value></string>
    <string><id>5901</id><value>Zeige Filme</value></string>
    <string><id>5902</id><value>Welchen Trailer zeigen?</value></string>
    <string><id>5903</id><value>Neu hinzugefügte</value></string>
    <string><id>5904</id><value>Meist geschauter Film</value></string>
    <string><id>5905</id><value>Alle Filme</value></string>
    <string><id>5906</id><value>Trailers</value></string>
    <string><id>5907</id><value>Clips</value></string>
    <string><id>5908</id><value>Mehr</value></string>
    <string><id>5909</id><value>Kann Film nicht laden!</value></string>


    btw, thanks for the nice plugin!
     

    spraycleaner

    Portal Member
    December 25, 2004
    31
    0
    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...
     

    j1nx

    Portal Pro
    July 16, 2005
    233
    10
    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...

    After updating with a other CVS version you probably will overwrite your language string file. You have to copy that one back from the downloaded plugin directory, and your done. (again)
     

    jontaz1000

    Portal Member
    October 10, 2005
    6
    0
    Sweden
    Swedish translation!

    Really good plugin btw! I hope it gets integrated into mediportals own movieplayer, that would be awsome!



    <string>
    <id>5900</id>
    <value>Mina Trailers</value>
    </string>
    <string>
    <id>5901</id>
    <value>Visa Filmer</value>
    </string>
    <string>
    <id>5902</id>
    <value>Visa vilka filmer?</value>
    </string>
    <string>
    <id>5903</id>
    <value>Nyligen släppta filmer</value>
    </string>
    <string>
    <id>5904</id>
    <value>Mest sedda filmer</value>
    </string>
    <string>
    <id>5905</id>
    <value>Alla filmer</value>
    </string>
    <string>
    <id>5906</id>
    <value>Trailers</value>
    </string>
    <string>
    <id>5907</id>
    <value>Clips</value>
    </string>
    <string>
    <id>5908</id>
    <value>Mer material</value>
    </string>
    <string>
    <id>5909</id>
    <value>Kan inte spela film!</value>
    </string>
     

    Frodo

    Retired Team Member
  • Premium Supporter
  • April 22, 2004
    1,518
    121
    52
    The Netherlands
    Home Country
    Netherlands Netherlands
    nice plugin!
    i'll put it in cvs tonight when i'm back home

    frodo
     

    Users who are viewing this thread

    Top Bottom