2009-09-12, 08:22
CyberMaxX Wrote:Söder and to others who may find this reply useful:
From the First Post of this Thread
So, if you want your "Home Theater Experince" Script to emulate how the Apple Movies Trailers LITE script gathers it's information (meaning use of no database and only listing current movies) then Change the Scraper Settings to "Apple Movie Trailers (current)"
BUT: I deduced the following from looking at the code and from how the feature set is worded above.
I can see how this may lead to some confusion as I was confused a bit myself until I dug into it.
1) If you select - "Apple Move Trailers (database)" note the keyword "requires" the AMT script in the Features list above.
This means that you MUST have the Regular AMT Script installed, and that you ran the AMT Script at least once to poplulat the database. You also need to set the correct path to where the AMT.db is located.
2) If you select - "Apple Movie Trailers (current)" note the keyword "same source" in the Features list above.
This means that the Home Theater Experince script will use the same source to get the information but it DOES NOT need The Apple Movies Trailer LITE Plugin to be installed to do so. The script literally uses the same "type of coding process" in it's own scipts to generate the information needed from the Apple Site.
I confirmed #2 by just comparing the code between the Home Theater Experince Script and Apple Movies Trailer LITE plugin.
I'm pretty sure this is what NUKA1195 meant by "same source", but anyone feel free to correct me.
Now "Are you Experinced?" for those of you who are having problems with railers playing.
Based on this thread I was able to get the Home Theater Experince Script working again with selecting and showing trailers do to the recent changes that the Apple Site had made. The XBMC Team is aware of what is needed and you can follow this trac if you are interested. For the exact cause of the issue at hand read this.
In the mean time, if you want your "Experience" back you will need to make some changes: (or wait until the XBMC Team patches it all up)
For those who like and selected the setting Apple Movies Trailers (current) do this:
Locate and edit the scraper.py file in \scripts\Home Theater Experience\resources\scrapers\amt_current
Change the following block of code near line 96:
Code:trailer = re.findall( "<large[^>]*>(.*?)</large>", preview[ 0 ] )[ 0 ]
# replace with 1080p if quality == 1080p
if ( self.settings[ "trailer_quality" ] == 3 ):
trailer = trailer.replace( "a720p.m4v", "h1080p.mov" )
by adding to the block the below line which is in bold
Code:trailer = re.findall( "<large[^>]*>(.*?)</large>", preview[ 0 ] )[ 0 ]
[b][size=small]trailer = trailer.replace( "movies.apple.com", "www.apple.com") [/size][/b]
# replace with 1080p if quality == 1080p
if ( self.settings[ "trailer_quality" ] == 3 ):
trailer = trailer.replace( "a720p.m4v", "h1080p.mov" )
For those who like and selected the setting: Apple Movie Trailers (database) do this:
Locate and edit the scrapers.py file in \scripts\Home Theater Experience\resources\scrapers\amt_database
Change the following block of code near line 129:
Code:# if there was a valid trailer set it
url = ""
if ( choice >= 0 ):
url = trailers[ choice ]
# return choice
return url
by adding to the block the below line which is in bold
Code:# if there was a valid trailer set it
url = ""
if ( choice >= 0 ):
url = trailers[ choice ]
[b][size=small]url = url.replace( "movies.apple.com", "www.apple.com" )[/size][/b]
# return choice
return url
Enjoy your "Experince" everyone
CyberMaxX
I will try this. Thank you.
I have problem with my AMT Lite at the moment also, dont know why... I hope this work for this script then.
/Söder