Kodi Community Forum
[RELEASE] Amazon Prime Instant Video plug-in addon - 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] Amazon Prime Instant Video plug-in addon (/showthread.php?tid=108124)



- dc2447 - 2011-12-27

is there nay magic to get this working for those of us outside the US with prime accounts?


Getting Prime outside the US - gursk - 2011-12-30

http://www.unblock-us.com/

Works through DNS redirection & does the trick for Amazon, Hulu, Netflix...etc.


- TheCasa - 2011-12-30

I've only just started experimenting with this plugin. Am I the only one that finds it takes a very long time to both load the library and open the stream? Once they play, everything is great.


- dc2447 - 2011-12-30

gursk Wrote:http://www.unblock-us.com/

Works through DNS redirection & does the trick for Amazon, Hulu, Netflix...etc.

How does that help this plugin?


- huckw - 2011-12-31

BlueCop Wrote:mushupork595: it works fine.

There is a problem some people are experiencing where the context menu items parameters are losing their quotation marks when executed. This will cause them to fail. it seems xbmc is removing them.

I don't know who is effected by this or which versions. I haven't replicated it.

Win7, XBMC 10.1, Plugin 0.3.7. I'm getting the script failed error when trying to add The Wonder Years, The X-files, Sesame Street (those are the only 3 I tried) to my favorites. Other than this its working fine...great work!!!


Amazon Prime library does not reflect entire selection? - equilibriot - 2012-01-02

Please accept my thanks for creating this plug in and my apologies for what might be several dumb questions.

I was able to get the plugin for my Apple TV2 installed and working, but had several questions:

-- Settings show that I have installed v0.3.7 which I assume (?) is the most up-to-date copy -- do I have to manually check for updates or does this happen automatically?
-- The list of movies available via the Amazon Prime plug-in does not match what is shown on the Amazon site. Is there some way to get the most up-to-date list?
-- The search function in Amazon Prime plug-in does not appear to work -- am I doing something wrong?

Thanks...


- mickle00 - 2012-01-02

BlueCop,

Thanks for everything you've done...this is amazing.

For some reason, my Apple TV2 running the latest XBMC nightlies cannot get past the "WARNING: HandShake: Type mismatch: client sent 6, server answered 9" issue.

I have downloaded the new librtmp, http://code.google.com/p/bluecop-xbmc-repo/downloads/detail?name=librtmp.0.dylib&can=2&q=

and placed it in /Applications/XBMC.frappliance/Frameworks

I've chown'd it to be owned by mobile, and made sure all the permissions remained the same, including making it executable.

For some reason, Amazon will not seem to stream anything.

Hulu, Free Cable, and ESPN all appear to be working perfectly. Attached is a full dump of the xbmc log, any help would be greatly appreciated, and happy new years. Smile

http://pastebin.com/7rwYQAzK


- pmac - 2012-01-03

Hi Bluecop... nice job on the Amazon addon... ran into an issue I was hoping you could help with.

I'm running the Eden beta of XBMC on an ATV2. The Amazon addon will load the lists of videos, I can browse down to different movies, tv series episodes, etc. However, when I try to view a specific video, I get a script error.

The log shows an error right after the play request is made for a video:

00:39:01 T:124715008 ERROR: Error Type: <type 'exceptions.ImportError'>
00:39:01 T:124715008 ERROR: Error Contents: No module named demjson

Any thoughts? Thanks!


Plugin Crashes and won't play - feldorn - 2012-01-05

I've been trying to get this plugin to work, but seems there is an error. Can anybody help?

09:20:55 T:3764 NOTICE: getURL: http://www.amazon.com/gp/product/B000YHCZ02
09:20:57 T:3764 NOTICE: getURL: https://atv-ps.amazon.com/cdp/catalog/GetStreamingUrlSets?asin=B000YHCZ02&deviceTypeID=A13Q6A55DBZB7M&firmware=LNX%2010,3,181,14%20PlugIn&customerID=A1HP9IRJYCKNIV&deviceID=A1HP9IRJYCKNIV1325776857278B000YHCZ02&token=d439c3d5cd860157c509aa6ca27a79ac&xws-fa-ov=true&format=json&version=1
09:20:57 T:3764 NOTICE: {"message":{"timestamp":1325776850,"body":{"message":"{ATVQueueNoIssuableContentRightException Contents: [ (Extended -> CodigoBaseException[message=\"[getFreeLicense()] No issuable right found for CustomerId:A1HP9IRJYCKNIV ASIN:B000YHCZ02 ConsumptionType:{Enum::STREAMING}\"]) errorMessage=[getFreeLicense()] No issuable right found for CustomerId:A1HP9IRJYCKNIV ASIN:B000YHCZ02 ConsumptionType:{Enum::STREAMING} ]}","code":"CDP.Internal"},"statusCode":"ERROR"},"signature":"kX3uYbhx+6WaIoZa09Juj49fADUcEZk4Aeh7BJE8jtKwf1OEzd0dwu6B63476MUy9Cp3ikZOmiVQJE7uB+Rup7KmwZHFefhM1CSOt4IZfIXdvGqqRRvvS66dfFF6E41fT6I38id3eWEimPZRZKFaB6Sjcp8/StIrkybUUW0zmBY="}
09:20:57 T:3764 NOTICE: {u'message': {u'body': {u'message': u'{ATVQueueNoIssuableContentRightException Contents: [ (Extended -> CodigoBaseException[message="[getFreeLicense()] No issuable right found for CustomerId:A1HP9IRJYCKNIV ASIN:B000YHCZ02 ConsumptionType:{Enum::STREAMING}"]) errorMessage=[getFreeLicense()] No issuable right found for CustomerId:A1HP9IRJYCKNIV ASIN:B000YHCZ02 ConsumptionType:{Enum::STREAMING} ]}', u'code': u'CDP.Internal'}, u'timestamp': 1325776850, u'statusCode': u'ERROR'}, u'signature': u'kX3uYbhx+6WaIoZa09Juj49fADUcEZk4Aeh7BJE8jtKwf1OEzd0dwu6B63476MUy9Cp3ikZOmiVQJE7uB+Rup7KmwZHFefhM1CSOt4IZfIXdvGqqRRvvS66dfFF6E41fT6I38id3eWEimPZRZKFaB6Sjcp8/StIrkybUUW0zmBY='}
09:20:57 T:3764 INFO: -->Python script returned the following error<--
09:20:57 T:3764 ERROR: Error Type: <type 'exceptions.ValueError'>
09:20:57 T:3764 ERROR: Error Contents: need more than 3 values to unpack
09:20:57 T:3764 ERROR: Traceback (most recent call last):
File "C:\Users\chris\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 52, in <module>
modes ( )
File "C:\Users\chris\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 50, in modes
exec 'sitemodule.%s()' % common.args.sitemode
File "<string>", line 1, in <module>
File "C:\Users\chris\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\play.py", line 77, in PLAYVIDEO
rtmpurls, streamSessionID, cdn, title = GETSTREAMS(getstream)
ValueError: need more than 3 values to unpack
09:20:57 T:3764 INFO: -->End of Python script error report<--


- dave67 - 2012-01-08

Never mind


- thramp - 2012-01-08

I apologize in advance for being ignorant, but could some kind soul guide me in the direction of using the Amazon Prime plugin with XBMC4XBOX? I assume that I need to manually install the plugin, but I'm not sure where to start - in debug, I'm getting "ImportError: No module named _winreg". Thank you in advance.


- elsanto - 2012-01-08

This link seems to be dead, any chance someone could re-host?
Thanks.

BlueCop Wrote:I thought I linked to this before. it was the top google search result.

librtmp for atv1
http://forum.xbmc.org/showpost.php?p=839939&postcount=8

further down in the thread is confirmation of it working for atv1



My Movie library script error - sammy410 - 2012-01-08

When I go to my library, the TV shows folder works fine. However, the Movie folder throws a script error message. I am using Eden Beta 1. Everything else in the script works fine.


- TheWaterbug - 2012-01-09

Hi, all! New member, here Big Grin

[reposted from the obsolete thread]

I just installed your repo and the Amazon client on my jailbreaked/jailbroken Apple TV 2, and it works! Awesome, and thank you very much!

Pretty amazing that you can reverse engineer something like a secure streaming client.

Anyway, I just wanted to thank Bluecop for providing this.

As others have mentioned, a Search function would help tremendously, but even without it it's a great feature, and something I've been looking for for along time.

One question--how do Amazon items get into the "Favorited" list? A member on another forum suggested that I Favorite all my movies from my Mac/PC to avoid having to scroll through thousands of titles in XBMC, but I can't figure out how to do that.

Thanks!


- BlueCop - 2012-01-09

I am actually trying some search code someone sent me by email in December. Thanks Steven!

It works rather well for finding movies. It just plays the default episode of the chosen season rather then listing episodes though.

I am working on changing it up a bit to list episodes too.

Edit:
Favorited lists are stored in your the tv.db and movie.db in userdata/addon_settings/plugin.amazon.video/

if you copy that between installations then it will copy your watched history and favorites.

TheWaterbug Wrote:Pretty amazing that you can reverse engineer something like a secure streaming client.

most of them aren't that secure. They just use ssl. Once you get past that then it is mostly xml, json, or html that you need to parse for information.
places like hulu like to encrypt everything important. amazon seems to just be worried that you are indeed authenticated. They don't seem to protect the streams at all beyond that. You have to use a few variables to make a url and then parse the json for the rmtp links. They do use tsl/ssl for pretty much everything though.