Kodi Community Forum
[RELEASE] Apple Movie Trailers Lite (formerly AMT II) Plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Apple Movie Trailers Lite (formerly AMT II) Plugin (/showthread.php?tid=33693)



- Rezin - 2010-10-24

bogey Wrote:Here's diff for slow buffering, works a lot faster without ? in end of url.

Nuka1195 Wrote:i can't test this, i've never had enough bandwith to know, so if people report back confirmation. i'll add this in.
Yes, this fixed it for me. My ADSL2+ syncs at ~20mbps, and while streaming 720p trailers it would still buffer several times. Trailers didn't stop to buffer a single time after editing that file. Onya, bogey. Cool

Edit: Running Dharma beta 3 Live on ASRock 330.


- Nazgulled - 2010-10-24

bogey Wrote:Here's diff for slow buffering, works a lot faster without ? in end of url.
I think Apple is using Akamai as CDN.
If the url is not exactly correct, it does not found in cache, and transfers are slow.

Please see also this test with wget what was run simultaneously
http://pastebin.com/LAVUU706


Code:
--- a/trailers.py.org
+++ b/trailers.py
@@ -184,7 +184,7 @@ class _Parser:
                     # convert size to long
                     size = long( size )
                 # add User-Agent to trailer url
-                trailer_url += "?|User-Agent=%s" % ( urllib.quote_plus( sys.modules[ "__main__" ].__useragent__ ), )
+                trailer_url += "|User-Agent=%s" % ( urllib.quote_plus( sys.modules[ "__main__" ].__useragent__ ), )
                 # encode/clean plot
                 plot = unicode( unescape( trailer[ 9 ] ), encoding, "replace" )
                 # duration of trailer
How exactly do I apply this patch? I tried to edit the trailers.y file directly (removing the '?') on that line but I get a script loading error...


- Rezin - 2010-10-25

Nazgulled Wrote:How exactly do I apply this patch?
I used the later version (than the one you'd quoted there), and just edited the file with vi.


- Nazgulled - 2010-10-25

Rezin Wrote:I used the later version (than the one you'd quoted there), and just edited the file with vi.
Thanks, I'll have to try that version then. Only next week though... Sad


- dvdapex - 2010-10-30

Rezin Wrote:I used the later version (than the one you'd quoted there), and just edited the file with vi.

Where in the trailers.py file do I paste the patch text? Or do I apply the patch in a different way?


- Nazgulled - 2010-10-31

Tried it again with the later version, didn't work.

Every time I try to load the plugin I get:
"Script Failed! : addon.py"


- Rezin - 2010-10-31

dvdapex Wrote:Where in the trailers.py file do I paste the patch text? Or do I apply the patch in a different way?
There's probably an easier method, but I just used vi to make the changes between the old and new version (minus and plus), eg:

Code:
[color=red]-[/color]                trailer_url += "[color=red]?[/color]|User-Agent=%s" % ( urllib.quote_plus( sys.modules[ "__main__" ].__useragent__ ), )
[color=red]+[/color]                trailer_url += "|User-Agent=%s" % ( urllib.quote_plus( sys.modules[ "__main__" ].__useragent__ ), )



- Nazgulled - 2010-10-31

Simply changing the text files doesn't work for me...

I'm using Dharma Beta 3 and installed the plugin through the add-on manager. Was your process any different? Something must be different...


- dvdapex - 2010-10-31

Rezin Wrote:There's probably an easier method, but I just used vi to make the changes between the old and new version (minus and plus), eg:

Code:
[color=red]-[/color]                trailer_url += "[color=red]?[/color]|User-Agent=%s" % ( urllib.quote_plus( sys.modules[ "__main__" ].__useragent__ ), )
[color=red]+[/color]                trailer_url += "|User-Agent=%s" % ( urllib.quote_plus( sys.modules[ "__main__" ].__useragent__ ), )


I removed the "?" from the line and buffering is much quicker (7 Mbits down connection) but still happens about 5 - 6 times per preview (720p). Sad


- Eldorado - 2010-11-05

Eldorado Wrote:Two things..

I noticed AMT Lite is in both Nuka's repository and the 'official' XBMC repository, different versions in each. The XBMC repository has the latest 2.0.2 version, where Nuka's has 2.0.1

Also, I'm still having issues getting the full AMT script to work with Dharma, now onto Beta 2, I've completely removed and re-installed the script many times and I still cannot get it to initialize and download either a full or minimal grab to populate it's database

After selecting either it seems to do nothing, brings me into the script with a half empty screen

Another user posted a debug log earlier, I can do one as well if needed

No one else notices my comments on either #1 or #2?

As for AMT problem where it loads then doesn't seem to do anything, here's a debug log

I have done a full uninstall and re-install now using beta 4

http://pastebin.com/vbTkNhQ1


- AuXBoX - 2010-11-06

Is anyone else getting "Script Failed! : addon.py" when trying the theater showtimes.


- dsmuk - 2010-11-09

AuXBoX Wrote:Is anyone else getting "Script Failed! : addon.py" when trying the theater showtimes.

Yes! Was just about to post the same thing.


- boombastic - 2010-11-25

Is there a way to watch trailer in language other than english?Specifically in italian?


- lowfi - 2010-11-30

edit


cant find apple trailer lite,,, - eskro - 2010-12-01

Hi guys, im using DHARMA RC1....

When i try to add a video-addon,

i can't find the APPLE TRAILER LITE addon in the list...

anyone knows where i can find it?



thanks!!