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)



RE: [RELEASE] Amazon Prime Instant Video plug-in addon - BlueCop - 2012-06-22

Committed a big update.

It adds listing your amazon Watchlist. You can add/remove movies and seasons to a from your amazon watch list within the plugin as well.

It also adds featured listings for movies and tv shows. these include popular, recently added, editors picks, imdb top 250, etc. These are live so should always be up to date. These are prime only. Anything new is automatically added to the local databases.

There is a new Search. It returns more items and also as an option to select "Search Suggestions" item to use if you search was incorrect. Search is also prime only and live from the site. It will add anything new to your database as well.

I renamed "My Library" To "Purchases & Rentals" to more accurately describe its purpose. There is no purchasing ability in the plugin. You can purchase on the site and then watch in the plugin though from my experience.

The Movies and Television Databases have been expanded to include more meta-data. All items should have meta-data now no matter which listing you are using.

There might be a few bugs. Please post logs for failures or describe in detail the problem you are having. I wrote a lot of new code to support some different feeds.

I just noticed a slight problem with Doctor Who on my main TV. I already committed the version though. It didn't differentiate between old and new properly and lists them all together. Will work on a fix for that now.

discovered another issues where some HD seasons aren't populated with episodes. It didn't properly get the ASINs for the HD episodes. Working to fix that as well. It is only on some shows though.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - gjlp - 2012-06-23

BlueCop -- You're AWESOME. Thanks for the excellent update -- can't wait to check it out a bit later!


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - Citizen_Seven - 2012-06-23

Thank you, BlueCop. Your work makes XBMC much better.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - jelly2nd - 2012-06-23

Wow, you weren't kidding about a major update. I've been playing around with it and everything seems to run fine, great job. Amazon should be paying you for this, I'll actually start using their service more because of your work. Thanks

EDIT: One thing I did notice is the script is failing on a full TV refresh (movies update fine). Seems to be a South Park episode that's causing it (failed at the same place twice):

Code:
23:43:07 T:5536  NOTICE: AMAZON: addEpisodedb
23:43:07 T:5536  NOTICE: [u'B000GDA4X4', u'South Park', 2, 17, u'http://ecx.images-amazon.com/images/I/51K6W5P9beL.jpg', u'TV-MA', u'Mary Kay Bergman, Isaac Hayes', u'Animation,Comedy', u'Gnomes', u'Comedy Central', None, None, u'http://www.amazon.com/gp/product/B000GDA4X4', u'The boys are assigned a group project and end up working with a nervous geeky kid named Tweek.', u'1998-12-16', 1998, '23', False, True, False]
23:43:07 T:5536   ERROR: Error Type: <type 'exceptions.IndexError'>
23:43:07 T:5536   ERROR: Error Contents: list index out of range
23:43:07 T:5536   ERROR: Traceback (most recent call last):
                                              File "C:\Users\jelly\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 57, in <module>
                                                modes ( )
                                              File "C:\Users\jelly\AppData\Roaming\XBMC\addons\plugin.video.amazon\default.py", line 55, in modes
                                                exec 'sitemodule.%s()' % common.args.sitemode
                                              File "<string>", line 1, in <module>
                                              File "C:\Users\jelly\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\tv.py", line 384, in addTVdb
                                                ASIN_ADD(EPISODE_ASINS)
                                              File "C:\Users\jelly\AppData\Roaming\XBMC\addons\plugin.video.amazon\resources\lib\tv.py", line 545, in ASIN_ADD
                                                seriestitle = title['ancestorTitles'][0]['title']
                                            IndexError: list index out of range



RE: [RELEASE] Amazon Prime Instant Video plug-in addon - BlueCop - 2012-06-23

jelly2nd: southpark shouldn't even be being added. it isn't a prime show. I am a little confused honestly.

I am making a few changes to the tv database to fix some bugs. It will also be fully populate HD seasons this time.

The databases I commit should be current.

I also fixed a bug with purchased television shows.

I am trying to finish up the database changes so I can commit it.




RE: [RELEASE] Amazon Prime Instant Video plug-in addon - jelly2nd - 2012-06-23

Yeah that is strange. So if I understand you correctly, I won't have to do a refresh because you're committing updated databases? That sounds good to me because the TV update takes a while anyways. Either way, I've got enough new features to play around with to keep me busy.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - BlueCop - 2012-06-23

well hopefully the databases should be mostly complete. If you are missing a specific item you want then there are many ways to make sure it makes its way into your database. You could add it to your watchlist in a browser and then browse to it in the plugin. You could use search. You have to actually browse to the episodes of the any uncached seasons for them to be added to the database. So it should be really easy for you to get any new of missing stuff.

Then there is the Recently Added list for Movies and TV. Since the database is used for meta-data on all listings any new items are auto added to the database. So adding new items could be as simple as browsing around a bit.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - jeanwilly - 2012-06-23

@BlueCop

have your code a little bit adapted that is ( i think) works on XBMC4XBOX to!
When anywhere with amazon account it will test on XBMC4XBOX i give a download link!
I can it not test come from Germany!


Regards Jan / skatulskijean


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - BlueCop - 2012-06-23

committed version 5.5

It should fix a few bugs in Television and one in purchased television.

If an HD season of a show isn't populated with episodes in your database then browsing that season with a search should fix the problem. I worked on the initial scan and it got most of them hd episodes. A few of the HD seasons aren't associated like the others with their SD season. Each season has different Amazon ids.

The Library export needs to be updated as well.

jeanwilly: do the sqlite databases work on xbmc4xbox? i have an old xbox somewhere. What did you have to change?


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - bourgeois_rage - 2012-06-24

I am getting a script failed error when trying to start the Amazon plugin. I do not get any list to select movies or television, it just kicks me back out the main icon menu. I am a prime member and this worked before the update.

Quote:20:51:24 T:139996908087040 M:3556896768 WARNING: Create - Unsupported protocol(script) in script://
20:51:32 T:139997061166848 M:3536408576 WARNING: Previous line repeats 1 times.
20:51:32 T:139997061166848 M:3536408576 NOTICE: -->Python Interpreter Initialized<--
20:51:34 T:139997061166848 M:3535712256 ERROR: Error Type: exceptions.ImportError20:51:34 T:139997061166848 M:3535712256 ERROR: Error Contents: No module named hashlib20:51:34 T:139997061166848 M:3535712256 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/plugin.video.amazon/default.py", line 12, in ? import resources.lib.common as common File "/home/xbmc/.xbmc/addons/plugin.video.amazon/resources/lib/common.py", line 20, in ?
import hashlib ImportError: No module named hashlib20:51:34 T:139997469231168 M:3535839232 ERROR: GetDirectory - Error getting plugin://plugin.video.amazon/20:51:34 T:139997469231168 M:3535839232 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.amazon/) failed20:51:34 T:139996908087040 M:3535839232 WARNING: Create - Unsupported protocol(script) in script://
20:51:45 T:139997061166848 M:3535781888 WARNING: Previous line repeats 1 times.20:51:45 T:139997061166848 M:3535781888 NOTICE: -->Python Interpreter Initialized<--20:51:46 T:139997061166848 M:3535552512 ERROR: Error Type: exceptions.ImportError
20:51:46 T:139997061166848 M:3535552512 ERROR: Error Contents: No module named hashlib20:51:46 T:139997061166848 M:3535552512 ERROR: Traceback (most recent call last): File "/home/xbmc/.xbmc/addons/plugin.video.amazon/default.py", line 12, in ? import resources.lib.common as common File "/home/xbmc/.xbmc/addons/plugin.video.amazon/resources/lib/common.py", line 20, in ?
import hashlib
ImportError: No module named hashlib20:51:46 T:139997469231168 M:3535679488 ERROR: GetDirectory - Error getting plugin://plugin.video.amazon/20:51:46 T:139997469231168 M:3535679488 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.amazon/) failed20:51:46 T:139996908087040 M:3534028800 WARNING: Create - Unsupported protocol(script) in script://

I'm running Dharma on Ubuntu.Let me know if you need any additional information, bc. Thank you, for all the hard work, sir.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - BlueCop - 2012-06-24

Dharma uses a slightly older python. it doesnt have the module hashlib for sha1 hmac request signing. i will look into what is used for sha1 in the older python and use that if available.

Eden is stable now though if you want to upgrade.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - bourgeois_rage - 2012-06-24

I probably should I just have to find the time to do it, I guess. Thanks for the info.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - BlueCop - 2012-06-24

bourgeois_rage: I committed a fix for dharma. It is version 0.5.6

It uses the older sha module if hashlib isn't available.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - bourgeois_rage - 2012-06-24

Thanks, that fixed it. Though I will probably upgrade as I'm sure more problems will arrive the further out of date I get. That's some great service for a Saturday night.


RE: [RELEASE] Amazon Prime Instant Video plug-in addon - BlueCop - 2012-06-24

Boring Saturday for me. Girlfriend is out of town at some biomedical conference. I am just watching some HD stargate sg-1 on amazon because I only saw them in SD. Also It was an easy fix.