Apple had changed some of there backend XML structure which is why the old code wasn't working anymore. I've made a few other modifications and it seems to be working pretty good so I'm posting it for testing.
Apple Movie Trailers Import:
http://home.comcast.net/~twhite644/appl ... ailers.zip
Source Code:
http://home.comcast.net/~twhite644/appl ... ation1.zip
Download the AppleMovieTrailers.zip file, unzip it and put the executable in your PLUGINS folder. Create an event to run the executable:
AppleMovieTrailers.exe /size=large
You'll need to create your screens to use the database that's created.
This application has 9 command line parameters (you must use at least one of them when you call the app or it will balk):
1) xlobby trailers database (/db=), allows you to set the name of the xml file to output, default is trailers.xml
2) directory to store the downloaded cover art (/covers=), default is Xlobby\Covers
3) /full flag forces an update for all web based trailers (ie those whose Parameter value start with "http://")
4) specify which size Quicktime movie URL to capture (/size=[small|medium|large|HD 480|HD 720|HD 1080]), default is large
5) specify how long to wait for downloads (/timeout=) (slower connections may need a larger value here, in milliseconds: default is 10000).
6) /lowres to limit covers to the lowres version on Itunes
7) /isnew to update "IsNew" database field (Changes trailers "IsNew" field to "False" during update for all existing trailers)
8) Download trailer (/download="categoryname>parameter"), downloads trailer to local disk with progress information, updates database to point to downloaded trailer
9) Download path (/dlpath=), default is Xlobby\Covers
For example:
AppleMovieTrailers.exe /size=medium /isnew
AppleMovieTrailers.exe /db=trailers.xml /covers="\\Server\Share1\Itunes" /full /size="HD 720" /timeout=10000 /lowres
AppleMovieTrailers.exe /download=%trailers>parameter% /dlpath="\\Server\ShareName\Directory\%trailers>display%"
The following parameters are getting saved to the database where available:
- - Parameter: Direct URL to the QuickTime preview
- Display: Trailer Movie Title
- CoverArt: default directory is Xlobby\covers
- Offline: (True|False)
- IsNew: (True|False)
- Date: Release date if available
- itunesurl: url to the XML page for the movie on Itunes - for internal use
- Genre(s):
- Rating:
- Studio:
- SortTitle: title corrected for "The", "A", "An"
- Size: (small|medium|large|HD 480|HD 720|HD 1080)
- Actors:
- Runtime: trailer runtime
- Plot:
- Executable must be placed in Xlobby\Plugins directory
- XML Schema change - DELETE your old trailers db before running the new version
- default db xml file is Xlobby\Databases\trailers.xml
- default coverart directory is Xlobby\plugins\covers
- Fixed code to match iTunes backend update
- DIRECTOR field removed, no longer available from Itunes
- RUNTIME field added
- SIZE field now accepts 480, 720, and 1080 (HD links)
- size code will now link to the largest available trailer up to the SIZE specified; ie if you put 720 as SIZE but only Medium is available you'll ge the link to the medium trailer
- pulling higher resolution cover by default when available
- added /lowres option to force low resolution cover download
- increased default timeout from 5000 to 10000
- made a couple of code/speed improvements
- updated SortTitle code to process "A" and "An"
- /db and /covers command line parameters now support Xlobby path options of:
- "root://" - The XLobby root directory.
"skin://" - The XLobby skin directory.
"directory://" - A path under the XLobby root directory.
"\\WindowsShareName" - standard windows share path designation
- XML Schema change - DELETE your old trailers db before running the new version
- Coverart default location has been changed to Xlobby\covers; delete your old covers directory if located in Xlobby\Plugins or move it to Xlobby root
- /size= variable for HD trailer links changed to "HD 480", "HD 720", and "HD 1080";
- Size code fixed to link to the largest available trailer up to the SIZE specified; or if only 1 trailer available, to that trailer, regardless of size;
- /newonly option removed;
- Updates are now incremental by default based on "iTunesURL" value;
- Incremental update will remove trailers that no longer exist at Itunes and have not been downloaded;
- ISNEW field added - set to True for each new trailer discovered;
- /isnew option added: "/isnew" Updates ISNEW value to "False" for previously imported trailers - default is disabled;
- /full option added: Forces update of all HTTP based trailers;
- /download option added: "/download=%categoryname>parameter%" Download the trailer and update the database;
- /dlpath download directory option added: "/dlpath=directory" sets the trailer download directory - default is Xlobby\covers;
- OFFLINE field added - set to "True" for all new trailers; /download option will update this value to "False";
v3.1 Highlights/Changes - Updated 3/03/2007:
- Fixed an indexing problem with old trailer cleanup.
- Updated GENRE field to support filtering
v3.2 Highlights/Changes - Updated 9/01/2007:
- Updated trailer regex to match Itunes back end change.
v3.4 Highlights/Changes - Updated 6/01/2008:
- Updated trailer regex to match Itunes back end change.
- Parsing trailers by Genre now instead of Studio, this added approximately 200 trailers that were being missed from mostly independent studios (Full update this morning was 1726 trailers)
Big kudos to bradsjm for the original code!
Special thanks to Jack Simbach, aka spencer171 for the Xlobby path options idea and code from the XscriptNG Plugin!
Good luck,
tsw