Kodi Community Forum
Release Amazon VOD [plugin.video.amazon[vod|-test]] - 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 VOD [plugin.video.amazon[vod|-test]] (/showthread.php?tid=349255)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - nmadrane - 2019-12-05

Hi,

I would like to play an Amazon Prime video by using :

Code:
xbmc.executebuiltin( "PlayMedia(plugin://plugin.video.amazon-test/?mode=PlayVideo&name=0NHGFE8V1R02H7IHVUI515V4XO&asin=amzn1.dv.gti.ccb02776-e09d-fd2b-d589-b3da45f13bd1)" )

It works if the addon is already running (if for example I am in the home screen or any page of the addon).

However, it doesn't work when the addon is not running :

Code:
2019-12-05 12:36:27.692 T:3766477616  NOTICE: [Amazon VOD] Using Host: Akamai
2019-12-05 12:36:27.693 T:3766477616  NOTICE: [Amazon VOD] checkURL: https://a99avoddashs3ww-a.akamaihd.net/d/2$cOy1JkfK4xr2wjZLf5Egw5_zu5k~/ondemand/ww_dub/97c8/5f85/fa9e/4181-a806-65db35789eb6/69eafe36-fcb8-401a-9fa5-054f1fe822b3_corrected.mpd
2019-12-05 12:36:28.485 T:3766477616   DEBUG: [Amazon VOD] http://127.0.0.1:39004/mpd/https%3A%2F%2Fa99avoddashs3ww-a.akamaihd.net%2Fd%2F2%24cOy1JkfK4xr2wjZLf5Egw5_zu5k%2Fondemand%2Fww_dub%2F97c8%2F5f85%2Ffa9e%2F4181-a806-65db35789eb6%2F69eafe36-fcb8-401a-9fa5-054f1fe822b3_corrected.mpd
2019-12-05 12:36:28.486 T:3766477616  NOTICE: [Amazon VOD] getURL: https://atv-ps-eu.primevideo.com/cdp/catalog/GetASINDetails?firmware=fmw:28-app:3.0.258.45141&deviceTypeID=A2GFL5ZMWNE0PX&deviceID=98e9af2170251db42d206344bee799973db4a1e8cb76ded879c56886&format=json&version=2&formatVersion=3&marketplaceId=A2MFUE2XK8ZSSY&IncludeAll=T&AID=1&ASINList=amzn1.dv.gti.36ac6da1-a779-58a7-2e3b-337006d2cd02
2019-12-05 12:36:28.610 T:3766477616   ERROR: [Amazon VOD] Error reason: 500 error (TryAgain)
2019-12-05 12:36:28.611 T:3766477616  NOTICE: [Amazon VOD] Attempt #2
2019-12-05 12:36:28.612 T:3766477616  NOTICE: [Amazon VOD] getURL: https://atv-ps-eu.primevideo.com/cdp/catalog/GetASINDetails?firmware=fmw:28-app:3.0.258.45141&deviceTypeID=A2GFL5ZMWNE0PX&deviceID=98e9af2170251db42d206344bee799973db4a1e8cb76ded879c56886&format=json&version=2&formatVersion=3&marketplaceId=A2MFUE2XK8ZSSY&IncludeAll=T&AID=1&ASINList=amzn1.dv.gti.36ac6da1-a779-58a7-2e3b-337006d2cd02
2019-12-05 12:36:28.820 T:3766477616   ERROR: [Amazon VOD] Error reason: 500 error (TryAgain)
2019-12-05 12:36:28.820 T:3766477616  NOTICE: [Amazon VOD] Attempt #3
2019-12-05 12:36:28.822 T:3766477616  NOTICE: [Amazon VOD] getURL: https://atv-ps-eu.primevideo.com/cdp/catalog/GetASINDetails?firmware=fmw:28-app:3.0.258.45141&deviceTypeID=A2GFL5ZMWNE0PX&deviceID=98e9af2170251db42d206344bee799973db4a1e8cb76ded879c56886&format=json&version=2&formatVersion=3&marketplaceId=A2MFUE2XK8ZSSY&IncludeAll=T&AID=1&ASINList=amzn1.dv.gti.36ac6da1-a779-58a7-2e3b-337006d2cd02
2019-12-05 12:36:28.950 T:3766477616   ERROR: [Amazon VOD] Error reason: 500 error (TryAgain)
2019-12-05 12:36:28.951 T:3766477616   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'bool' object has no attribute '__getitem__'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.amazon-test/default.py", line 5, in <module>
                                                EntryPoint()
                                              File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 80, in EntryPoint
                                                PlayVideo(args.get('name', ''), args.get('asin'), args.get('adult', '0'), int(args.get('trailer', '0')), int(args.get('selbitrate', '0')))
                                              File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/playback.py", line 476, in PlayVideo
                                                playable = _IStreamPlayback(asin, name, streamtype, isAdult, extern)
                                              File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/playback.py", line 400, in _IStreamPlayback
                                                content = getATVData('GetASINDetails', 'ASINList=' + asin)['titles'][0]
                                            TypeError: 'bool' object has no attribute '__getitem__'
                                            -->End of Python script error report<--
2019-12-05 12:36:28.954 T:3766477616   DEBUG: onExecutionDone(8, /storage/.kodi/addons/plugin.video.amazon-test/default.py)

Do you have any idea ? Is it due to the fact that a service must running ? To a missing login call ?


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Varstahl - 2019-12-05

(2019-12-03, 20:50)Toozie Wrote: Amazon prime UK have just started showing football matches.  Is there any way to access these through the Kodi add-on?  I can't find them by search and they do not appear if I add them to my watch list via my browser.  They don't appear to be categorized as TV or Movie.

You'd have to ask Sandmann, or open an issue for a feature request on GitHub. I know live channels are supported, I just don't know how they're managed at the moment.

(2019-12-03, 22:58)notgoo Wrote: So, if I want to play content at 720p resolution (S905 devices don't have enough power for higher res) my only chance is to reboot to Android and run kodi from there, right?

Pretty much yeah, unless something changes in the DRM landscape or Kodi's support of HDCP.

(2019-12-05, 14:43)nmadrane Wrote: I would like to play an Amazon Prime video by using :

Code:
xbmc.executebuiltin( "PlayMedia(plugin://plugin.video.amazon-test/?mode=PlayVideo&name=0NHGFE8V1R02H7IHVUI515V4XO&asin=amzn1.dv.gti.ccb02776-e09d-fd2b-d589-b3da45f13bd1)" )

Do you have any idea ? Is it due to the fact that a service must running ? To a missing login call ?

I know there is a way to play the video streams with the addon not running, and the service we use should start with Kodi so that shouldn't be a problem either. What I do not know is if you're doing proper initializations, just as I don't know if that query is valid. That also depends on the country you're in, because amazon considers different things as "ASINs", so while that might work if you're in France it won't work if you're in the UK.

There are addons such as OSMOSIS which export Amazon VOD titles into Kodi Library, you might want to check how they do it, it might give you a hint on what's going wrong.


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - hansolo77 - 2019-12-05

Has something changed recently with this addon?  I've not used it much in the past, but I was showing it off to my brother and noticed that the Library link to MOVIES doesn't link to movies, but rather the TV SHOWS.  Television also links there.  So I wasn't able to show him how Amazon works with MoviesAnywhere to link to the digital content.  Anyway, not sure if it's been mentioned before, so there you go..  It used to work, but now it doesn't.

Main Menu->Library->Movies=Television (Purchased)
Main Menu->Library->Television=Television (Purchased)

Amazon VOD 0.7.9
Kodi 18.2
Raspberry Pi 3
LibreElec v9.0.2


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Varstahl - 2019-12-05

Oops, yeah, there has been a change for amazon.TLDs that will come out with next stable in a couple days. I forgot to mention it in the list of known issues.


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - hansolo77 - 2019-12-05

Long as it's a known issue and will get fixed.  Smile  I was afraid it was something on my end that got messed up.  Thanks for letting me know!


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Varstahl - 2019-12-05

I think it's already fixed in the beta, but we were waiting to fix a couple issues with PrimeVideo before pushing another release. If I manage to I'll push it tonight, dunno if I can make it though.


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - starslayer74 - 2019-12-06

(2019-12-05, 23:23)hansolo77 Wrote: Long as it's a known issue and will get fixed.  Smile  I was afraid it was something on my end that got messed up.  Thanks for letting me know!

As a quick temporary workaround, you can add movies to your watchlist on Amazon's website or on the mobile app (or TV App) and then access them through the addon.... that's what I've been doing since back in the day because a long time ago we didn't have access to a list of our purchases, and searching a movie was hit or miss (there are like 5 different versions of some of the Marvel movies out there!)


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Varstahl - 2019-12-06

It shouldn't be necessary, I pushed v0.8.0 earlier today.


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Son_Of_Diablo - 2019-12-08

Hello,

I just installed the Amazon VOD addon and I have noticed the following entries in the Kodi log:
Code:
2019-12-08 00:36:56.425 T:1946194800 WARNING: CPythonInvoker(48, /storage/.kodi/addons/plugin.video.amazon-test/default.py): the python script "/storage/.kodi/addons/plugin.video.amazon-test/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6DialogE,N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE
2019-12-08 00:36:56.651 T:1842291568 WARNING: CPythonInvoker(47, /storage/.kodi/addons/plugin.video.amazon-test/default.py): the python script "/storage/.kodi/addons/plugin.video.amazon-test/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui6DialogE,N9XBMCAddon9xbmcaddon5AddonE,N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE
2019-12-08 00:38:22.991 T:1817113456 WARNING: CPythonInvoker(49, /storage/.kodi/addons/plugin.video.amazon-test/default.py): the python script "/storage/.kodi/addons/plugin.video.amazon-test/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE,N9XBMCAddon7xbmcgui6DialogE
2019-12-08 00:38:29.668 T:1808720752 WARNING: CPythonInvoker(73, /storage/.kodi/addons/plugin.video.amazon-test/default.py): the python script "/storage/.kodi/addons/plugin.video.amazon-test/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6DialogE,N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE
2019-12-08 00:43:32.362 T:1904231280 WARNING: CPythonInvoker(74, /storage/.kodi/addons/plugin.video.amazon-test/default.py): the python script "/storage/.kodi/addons/plugin.video.amazon-test/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui6DialogE,N9XBMCAddon9xbmcaddon5AddonE,N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE

are these anything I should be worried about?


Also, is it possible to export content that is not in your watchlist? If so how?


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Varstahl - 2019-12-08

No, that's nothing to worry about. It will be fixed eventually but it's not a severe issue, and pretty hard to exterminate.

As for export to library, at the moment is not available for PrimeVideo.com, but you can use other addons such as Osmosis until the feature is implemented.


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Son_Of_Diablo - 2019-12-08

(2019-12-08, 03:14)Varstahl Wrote: No, that's nothing to worry about. It will be fixed eventually but it's not a severe issue, and pretty hard to exterminate.

As for export to library, at the moment is not available for PrimeVideo.com, but you can use other addons such as Osmosis until the feature is implemented.
Oh okay thanks ^^

BTW, I saw a comment in the Netflix addon thread stating that exporting large amount of data could lead to a ban of the account.

Is this something I should be aware of with Amazon as well? Say if I were to export a whole show or my watchlist?


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Varstahl - 2019-12-08

First time I hear anything of the sort. I don't know how netflix works, but as for Amazon we don't have full autonomous scrapers, so I don't really think that's an issue.


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Son_Of_Diablo - 2019-12-08

(2019-12-08, 03:32)Varstahl Wrote: First time I hear anything of the sort. I don't know how netflix works, but as for Amazon we don't have full autonomous scrapers, so I don't really think that's an issue.
Okay, super, thank you very much Smile


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - orenmi - 2019-12-11

few times a day I am getting an addon error pop on the top right.
dont know what the cause is but is there a way to disable those messages?


RE: Amazon VOD [plugin.video.amazon[vod|-test]] - Varstahl - 2019-12-11

We use the notifications sparingly, and if an error pops up things went pretty, pretty bad. Unless you show the logs I really can't tell you if they're caused by the addon and why.

And no, we don't currently provide ways to disable notifications.


This forum uses Lukasz Tkacz MyBB addons.