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)



- BlueCop - 2011-10-24

myXBMC Wrote:Search functionality, please, thanks!
you can list all movies and then filter by keyword with the pre-eden releases.

Search isn't a priority currently.

myXBMC Wrote:Movies > Years > 2011 > only 6 movies ??

Alabama Moon
American: The Bill Hicks Story
Holy Rollers
IP Man 2: Legend of the Grandmaster (English Subtitled)
Manhattan Murder Mystery
Picture Me

what is your point?

complain to amazon if you aren't happy with the selection. They don't put the release year on many of the movie pages. They don't even offer an option to list by year if I am not mistaken. If amazon doesn't have a release year on the movie page then it doesn't get listed by year. Their "release" order is simply the order it was added to their database and years are jumbled together.

On a positive note I did get some amazon product api keys so it should be much easier and quicker to keep the databases updated with new releases. I mean much much quicker. I have some cable login code I want to finish for this epix plug-in. I then want to translate some of that code for the espn3 cable login. Working on the amazon api usage is next on my list after that.


- myXBMC - 2011-10-25

My apology, Bluecop (edited/deleted my post #150)

Thanks for plug-in !


- rice rocket - 2011-10-28

BlueCop Wrote:You can execute a full refresh in the plugin by using a context item "Full Television Refresh" on the Television item. It should pick up and add the new shows. You might want to use the content items on the new shows to scan in TVDB data.

I can upload a new database later though. The user can do the above to get any new content in the db though.

I wanted to add that it takes a bit of time to scan for new content. It will report to your how many new episodes it has added. It will not report duplicates already in the database.

I am working on a small stop and resume update to keep the position stored in the database for when you stop media. it will work similarly to hulu pause resume but store the data locally.



First off, thanks BlueCop for this excellent plugin. It's worked pretty well for the past few months. However, now I'm trying to update the DB to get the new content listed. I can't update either the movie DB or TV. I can't delete either as well.

Code:
====================AMAZON START====================
10:31:45 T:4264 M:4294967295 WARNING: XFILE::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
10:31:50 T:5648 M:4294967295 WARNING: Previous line repeats 1 times.
10:31:50 T:5648 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
10:31:50 T:5648 M:4294967295  NOTICE: ['plugin://plugin.video.amazon/', '-1', '?mode=movies&sitemode=addMoviesdb']
10:31:50 T:5648 M:4294967295   ERROR: Error Type: exceptions.NameError
10:31:50 T:5648 M:4294967295   ERROR: Error Contents: name 'movies' is not defined
10:31:50 T:5648 M:4294967295   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 12, in ?
                                                import resources.lib.common as common
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\common.py", line 34, in ?
                                                exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", ").replace('"',"\"")) , )
                                              File "<string>", line 1, in ?
                                            NameError: name 'movies' is not defined
10:35:52 T:5568 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
10:35:52 T:5568 M:4294967295  NOTICE: ['plugin://plugin.video.amazon/', '-1', '?mode=tv&sitemode=addTVdb']
10:35:52 T:5568 M:4294967295   ERROR: Error Type: exceptions.NameError
10:35:52 T:5568 M:4294967295   ERROR: Error Contents: name 'tv' is not defined
10:35:52 T:5568 M:4294967295   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 12, in ?
                                                import resources.lib.common as common
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\common.py", line 34, in ?
                                                exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", ").replace('"',"\"")) , )
                                              File "<string>", line 1, in ?
                                            NameError: name 'tv' is not defined
10:41:50 T:6784 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
10:41:51 T:6784 M:4294967295  NOTICE: ['plugin://plugin.video.amazon/', '-1', '?mode=tv&sitemode=deleteUserDatabase']
10:41:51 T:6784 M:4294967295   ERROR: Error Type: exceptions.NameError
10:41:51 T:6784 M:4294967295   ERROR: Error Contents: name 'tv' is not defined
10:41:51 T:6784 M:4294967295   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 12, in ?
                                                import resources.lib.common as common
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\common.py", line 34, in ?
                                                exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", ").replace('"',"\"")) , )
                                              File "<string>", line 1, in ?
                                            NameError: name 'tv' is not defined

Any clues? Thanks.

I also tried manually deleting the DB files in the userdata/addon_data/plugin.video.amazon/ folder, but this just emptied the DB, and still didn't let me update/refresh, yielding the same error.


- BlueCop - 2011-10-28

I was running a database updates now to post later.

I am not sure about the errors. Maybe it is the way they are launched from the context items. I am not sure right now. Let me know if you there is anything that fixes it.

what xbmc version are you using?


- BlueCop - 2011-10-28

I also wanted to add that the api testings I have been using isn't that useful. they limit request return size and it will still take a ton of requests to build the DB.

I got a roku XD to play with. I am going to solder my progskeet to it tomorrow to read out the flash chip and try to hack around with it. I am going to look into what the amazon app uses for a data source.

I really want to get into the netflix app. I want 1080p with 5.1 in xbmc on linux.

The apps use this scripting language which is like VB. It should be fun to tear all these apps apart.


Videos not playing - bsell81 - 2011-10-30

Edit: disregard post issue resolved


- Lunatixz - 2011-11-02

not sure if it was brought up but their is a problem with amazon titles with a "?" or any invaild filename


- velocity303 - 2011-11-02

rice rocket Wrote:First off, thanks BlueCop for this excellent plugin. It's worked pretty well for the past few months. However, now I'm trying to update the DB to get the new content listed. I can't update either the movie DB or TV. I can't delete either as well.

Code:
====================AMAZON START====================
10:31:45 T:4264 M:4294967295 WARNING: XFILE::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
10:31:50 T:5648 M:4294967295 WARNING: Previous line repeats 1 times.
10:31:50 T:5648 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
10:31:50 T:5648 M:4294967295  NOTICE: ['plugin://plugin.video.amazon/', '-1', '?mode=movies&sitemode=addMoviesdb']
10:31:50 T:5648 M:4294967295   ERROR: Error Type: exceptions.NameError
10:31:50 T:5648 M:4294967295   ERROR: Error Contents: name 'movies' is not defined
10:31:50 T:5648 M:4294967295   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 12, in ?
                                                import resources.lib.common as common
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\common.py", line 34, in ?
                                                exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", ").replace('"',"\"")) , )
                                              File "<string>", line 1, in ?
                                            NameError: name 'movies' is not defined
10:35:52 T:5568 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
10:35:52 T:5568 M:4294967295  NOTICE: ['plugin://plugin.video.amazon/', '-1', '?mode=tv&sitemode=addTVdb']
10:35:52 T:5568 M:4294967295   ERROR: Error Type: exceptions.NameError
10:35:52 T:5568 M:4294967295   ERROR: Error Contents: name 'tv' is not defined
10:35:52 T:5568 M:4294967295   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 12, in ?
                                                import resources.lib.common as common
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\common.py", line 34, in ?
                                                exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", ").replace('"',"\"")) , )
                                              File "<string>", line 1, in ?
                                            NameError: name 'tv' is not defined
10:41:50 T:6784 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
10:41:51 T:6784 M:4294967295  NOTICE: ['plugin://plugin.video.amazon/', '-1', '?mode=tv&sitemode=deleteUserDatabase']
10:41:51 T:6784 M:4294967295   ERROR: Error Type: exceptions.NameError
10:41:51 T:6784 M:4294967295   ERROR: Error Contents: name 'tv' is not defined
10:41:51 T:6784 M:4294967295   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 12, in ?
                                                import resources.lib.common as common
                                              File "C:\Users\xxxxx\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\common.py", line 34, in ?
                                                exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", ").replace('"',"\"")) , )
                                              File "<string>", line 1, in ?
                                            NameError: name 'tv' is not defined

Any clues? Thanks.

I also tried manually deleting the DB files in the userdata/addon_data/plugin.video.amazon/ folder, but this just emptied the DB, and still didn't let me update/refresh, yielding the same error.

I am seeing the exact same behavior when I try to update the DB. Could this be related to python versions? Doing some quick Google searches seem to indicate that it may potentially be the cause, but I haven't been able to determine a workaround. This seems to occur when trying to refresh the Movie DB or if I try to view my library. All other functions of the app, including playback are working wonderfully.

Thank you for an awesome add-on BlueCop Smile


- BlueCop - 2011-11-02

thats strange the parameters are losing their " quote marks. I don't know what is causing this.

I committed some updated databases. I was having a problem with movie duplicates that confused me a bit. It also is I find it missing seasons on occasion for tv shows. I am not sure the best way to get a complete list anymore their listings fluctuate so much.


Error Loading Videos - Jamhandman - 2011-11-03

I'm having trouble loading Videos using this plugin too. I believe I installed version 2.4 of the player. Copied the file as specified in an earlier post. Thoughts? Did amazon change something?

Thanks for all your hard work.
Code:
20:27:28 T:4300 M:2047090688  NOTICE: getURL: [url]http://www.amazon.com/gp/product/B005HEGW56[/url]
20:27:31 T:4300 M:2048749568  NOTICE: getURL: [url]https://atv-ps.amazon.com/cdp/catalog/GetStreamingUrlSets?asin=B005HEGW56&deviceTypeID=A13Q6A55DBZB7M&firmware=LNX%2010,3,181,14%20PlugIn&customerID=A3V0KUX1YWY4A&deviceID=A3V0KUX1YWY4A1320280051426B005HEGW56&token=eb5339c9affd813d6fc12d1f1decb0f5&xws-fa-ov=true&format=json&version=1[/url]
20:27:31 T:4300 M:2048749568  NOTICE: {"message":{"timestamp":1320280059,"body":{"code":"CDP.Playback.NoAvailableStreams"},"statusCode":"ERROR"},"signature":"pasR8PPZ+SM0MUsnxHjsuCPfhebHyr/LBCtQ6PsJzP7xLHt0TwbUA0O75eTY0dJVf4qzmm3EV1U2WMlipM0IXXtAH6W+/SuSmjuniE2x0KiockzyTipZtroNKx5Rl/V457uTReYfgH4MqjUCjDiGIBtIepwJVQxB6VqZLHnzlDw="}
20:27:31 T:4300 M:2048704512  NOTICE: {u'message': {u'body': {u'code': u'CDP.Playback.NoAvailableStreams'}, u'timestamp': 1320280059, u'statusCode': u'ERROR'}, u'signature': u'pasR8PPZ+SM0MUsnxHjsuCPfhebHyr/LBCtQ6PsJzP7xLHt0TwbUA0O75eTY0dJVf4qzmm3EV1U2WMlipM0IXXtAH6W+/SuSmjuniE2x0KiockzyTipZtroNKx5Rl/V457uTReYfgH4MqjUCjDiGIBtIepwJVQxB6VqZLHnzlDw='}
20:27:31 T:4300 M:2048704512   ERROR: Error Type: exceptions.ValueError
20:27:31 T:4300 M:2048704512   ERROR: Error Contents: need more than 3 values to unpack
20:27:31 T:4300 M:2048692224   ERROR: Traceback (most recent call last):
                                              File "C:\Users\XXXXX\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 52, in ?
                                                modes ( )
                                              File "C:\Users\XXXXX\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 50, in modes
                                                exec 'sitemodule.%s()' % common.args.sitemode
                                              File "<string>", line 1, in ?
                                              File "C:\Users\XXXXX\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
20:27:31 T:4924 M:2048573440   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.amazon/?url="http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2FB005HEGW56"&mode="play"&name="1x1+-+Broken+Bow%2C+Part+1+%26+2+%5BHD%5D"&sitemode="PLAYVIDEO"]
20:28:04 T:4924 M:2051493888  NOTICE: Storing total System Uptime
20:28:04 T:4924 M:2051559424  NOTICE: Saving settings
20:28:04 T:4924 M:2051395584  NOTICE: stop all
20:28:04 T:4924 M:2051395584  NOTICE: ES: Stopping event server



- BlueCop - 2011-11-03

Jamhandman: the error CDP.Playback.NoAvailableStreams means that you have used up your 2 playback slots and don't have any available. you have to stop watching somewhere else.


- Jamhandman - 2011-11-04

Ugh, I hate that warning. Sad I get it a lot when I move between computer to finish watching something. Ok thanks. Smile


favorites? - mushupork595 - 2011-11-04

I always get a script failed error when trying to add anything to favorites. Is this feature still a work in progress? I searched the thread and see a post saying the favorites will be lost when the add on updates, but didn't find anything to suggest it doesn't work yet. Is there anything I need to do to make that work? If there is anything I need to do to get logs to help troubleshoot please let me know.

I'm just looking for a way to easily get to TV series that my kids want to watch over and over and my guess is that is what the favorites feature would be for.

Thanks!


- BlueCop - 2011-11-04

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.


- dawoods - 2011-11-04

The amazon app was working before the recent update to the app and now I am getting the following error on my Apple TV2. Any ideas on how to fix it?

20:15:52 T:125804544 M:125329408 INFO: -->Python script returned the following error<--
20:15:52 T:125804544 M:125329408 ERROR: Error Type: <class 'urllib2.URLError'>
20:15:52 T:125804544 M:125329408 ERROR: Error Contents: <urlopen error _ssl.c:310: Invalid SSL protocol variant specified.>

XBMC log: http://pastebin.com/x2whNTSV
Amazon App Version: 0.3.7