home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 May / maximum-cd-2009-05.iso / DiscContents / XBMC_for_Windows-8.10.exe / scripts / AppleMovieTrailers / resources / plugins / Home Theater / default.py
Encoding:
Python Source  |  2008-09-14  |  717 b   |  25 lines

  1. """
  2.     Home Theater Plugin for viewing random trailers from Apple.com before viewing the main movie
  3. """
  4. # main imports
  5. import os
  6. import sys
  7. import xbmc
  8.  
  9. # plugin constants
  10. __plugin__ = "Home Theater"
  11. __script__ = "Apple Movie Trailers"
  12. __author__ = "Nuka1195"
  13. __url__ = "http://code.google.com/p/xbmc-scripting/"
  14. __svn_url__ = "http://xbmc-scripting.googlecode.com/svn/trunk/Apple%20Movie%20Trailers"
  15. __credits__ = "XBMC TEAM, freenode/#xbmc-scripting"
  16. __version__ = "1.4"
  17.  
  18.  
  19. if ( __name__ == "__main__" ):
  20.     if ( "isFolder=0" in sys.argv[ 2 ] ):
  21.         from TheaterAPI import xbmcplugin_player as plugin
  22.     else:
  23.         from TheaterAPI import xbmcplugin_list as plugin
  24.     plugin.Main()
  25.