# Apple Quicktime script using iTunes XML files
#   -- based on AQTbrowser by Darkie
#
# @author Mouton <mouton_x@abuserz.com>
# @date 2005-04-06
# @version 1.36

Installation:
- Copy the directory from Lib/* to your xbmc/python/Lib directory.
  Note: You should end up with new files in xbmc/python/Lib/_xmlplus/*
- Copy both .py files to your xbmc/scripts directory.
- Launch QuickTimeBrowser.py

!!! Make sure you are using a recent XBMC build. I had problems with playing 
trailers using an old XBMC version but with a 2005-04-09 compiled XBMC, it 
worked just fine! :)

The initial load can take some time to complete (about 5 mins). The next times 
you'll load the script, it won't take that long.

To mark a movie as a Favorite, use the controller X or the remote 1 buttons. 
Use the same buttons to remove Favorites from the list when you see your 
Favorites listed. You can watch your Favorites trailers as you would any other 
trailer (A on controller).

Use the Download and/or Save checkboxes to download the trailer before playing 
it and to save the trailers you watch on your Xbox hard-drive.

Finally, a dialog will pop if you set DEFAULT_SIZE = -1 or if more trailers 
than the 4 standard ones are found.

Enjoy!

- Mouton

===============
Version History
===============

1.36
- Downloaded but not Saved trailers will replay instantly in you replay them before quitting the script
- Re-added default background; now included in PM3 by default (no need to put background3.png anywhere) - Thx Chokemaniac
  Note: Use PM3 from april 9th or + (from CVS)
- Changed the Choose Video window layout a little; now using same background as main window
- Fixed a bug that caused the list of all movies to be reduced after playing a trailer - Thx pike

1.35
- Removed some unnecessary parsing from Update All
- Fixed error handling when selecting a button with no trailer (Favorites for example)
- Fixed a bug that kept Opening This Week trailers over the weeks... also applies to Newest and Exclusive, when renewed by Apple.

1.34
- Speed meter on download

1.33
- Fix in FS trailer URL caching
- Fix when selecting a button with no trailers in it (example empty Favorites) then trying to select a trailer in the list of already shown movies
- Improved error handling on bad DNS settings.
- Added progressbar to download and Update All dialogs

1.32
- Mini fix: Show All didn't show all but only the 30-ish trailers found after a standard Update.

1.31
- New Trailers loaded by default, if any. Otherwise, Exclusive trailers are loaded.
- Trailers removed by Apple will disappear on Update All
- Better data file saving to prevent corruption
- Saving trailers' .mov URL when known. Prevents from having to get it again from the xml if the trailer is played again.
- Added a 'Saving data file...' label at the bottom of the screen when data files are being saved to disk in the background.
  Do *not* quit the script while this is on screen; it would crash XBMC.

1.3
- Many fixes: Studios and Genres were not working; All Trailers saved to disk were only from the last update, etc. You'll need to do Update All to fix this.
- Added PROXY_SCRIPT
- Favorites are saved when added/removed, not just when you exit the script
- Moving left from the list will return focus on the last clicked button
- Data files are saved in the bg, while the file plays. :)
- Can replay saved trailer without re-downloading them

1.2
- No more auto-update on load, or auto-save on quit; to update the trailers, hit the Update button: this will update the Exclusive, Opening Week and Newest trailers only. Hitting the Update All button that appears after you did a normal Update will update all 1000+ trailers.
- "New Trailers" will stay in that list until the day ends or until you end the script, whichever comes last. In 1.1, as soon as you closed the script, the New Trailers would disappeared...
- Removed background image by default; you can put it back in the config at the top. On my Xbox, I need more free RAM to be able to use the script without crashing on each trailer, and removing the bg image helped.
- More free RAM

1.1
- Add Update button
- Add the 'i-wanna-see' feature (added Favorites button - see readme on how to use)
- Checkboxes for download before play & save to disk
