Sandmann79 / xbmc

Prime Video Addon for Kodi Media Center
https://forum.kodi.tv/showthread.php?tid=349255
GNU General Public License v3.0
759 stars 191 forks source link

Amazon Prime Video available in more than 200 countries #22

Closed iz8mbw closed 6 years ago

iz8mbw commented 7 years ago

Hi, Amazon Prime Video is now available also in Italy. Please, can you upgrade your addons to supports Amazon Prime Video for Italy?

Thanks!

zenitraM commented 7 years ago

Same for Spain.

Sandmann79 commented 7 years ago

I don't see any information at amazon.it or amazon.es.

Only when it is available on the website, i can integrate it into the vod addon.

iz8mbw commented 7 years ago

There is a link to https://www.primevideo.com/ on amazon.it homepage. Scroll the main banner in home page. See here: https://s24.postimg.org/rjtpr4hit/amazon.png

EDIT: more info here http://phx.corporate-ir.net/phoenix.zhtml?c=176060&p=irol-newsArticle&ID=2229623

eikaf commented 7 years ago

I'm just studing the code url's from primevideo.com and as i can see on the website it's quite similar to amazon.de. As soon as i can, i will try to test your code with it if you agree.

Phjodor commented 7 years ago

Tried to install and run with my amazon account from Norway. Everything seems to work until I got stuck un the DRM problem.

iz8mbw commented 7 years ago

What Country did you select in the addon?

Il 15/dic/2016 23:03, "Phjodor" notifications@github.com ha scritto:

Tried to install and run with my amazon account from Norway. Everything seems to work until I got stuck un the DRM problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Sandmann79/xbmc/issues/22#issuecomment-267457678, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUCouCT2Ru3aaJjxw6b7UuT_M5VLEOJks5rIblBgaJpZM4LM-WY .

eikaf commented 7 years ago

I am trying to change project source code, making it work with eu generic website. :)

On 15 December 2016 at 23:15, Fabio notifications@github.com wrote:

What Country did you select in the addon?

Il 15/dic/2016 23:03, "Phjodor" notifications@github.com ha scritto:

Tried to install and run with my amazon account from Norway. Everything seems to work until I got stuck un the DRM problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Sandmann79/xbmc/issues/22#issuecomment-267457678, or mute the thread https://github.com/notifications/unsubscribe- auth/ADUCouCT2Ru3aaJjxw6b7UuT_M5VLEOJks5rIblBgaJpZM4LM-WY

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Sandmann79/xbmc/issues/22#issuecomment-267460295, or mute the thread https://github.com/notifications/unsubscribe-auth/AU-RQNOBUgY0rWtgoVbKN9dRklzb1Pglks5rIbwBgaJpZM4LM-WY .

iz8mbw commented 7 years ago

Great!!

iz8mbw commented 7 years ago

@eikaf for what I know the same Amazon account (email address) works for all Amazon sites. Like Netflix. This sounds good. :-)

Phjodor commented 7 years ago

@iz8mbw That was my thought, set it to US and gave it a shot.

ghost commented 7 years ago

amazon

Also available in India now. Please add support for that as well.

Sandmann79 commented 7 years ago

@eikaf This would be nice, because I can't use primevideo.com with my account. Tried with vpn, but no luck.

eikaf commented 7 years ago

@Sandmann79 i need some info for debugging, log files and eventually how did you reverse the login forms etc.

Sandmann79 commented 7 years ago

@eikaf To get the urls, you can use Fiddler Web Debugger, wich decrypts https traffic.

For the login process, you need only look in the webpage source code and search for the following xml tag: <form name="signIn" Inside this you find some <input tags, ignore this one with attribute type="hidden" and you'll get the needed parameters from the name= attribute.

wmariz commented 7 years ago

Also available in Brazil.

radziojedi commented 7 years ago

Hi, Amazon Prime Video is now available also in Poland. Please, can you upgrade your addons to supports Amazon Prime Video for Poland?

Thanks!

pfiol commented 7 years ago

@eikaf Any update on your generic addon?

If someone needs a beta tester for Spain just let me know.

However I don't know if once we have the generic addon for all countries we will still face the "DRM" error...

eikaf commented 7 years ago

Update: i'm able to login in my country (IT). I'm getting error on missing browser addon. But i think i'm missing some addon for kodi, so it should be easily fixed . Unfortunately I don't have much time, but i hope i can work on this in the weekend. :)

p.s.: i'm creating also Italian translation.

keep you updated.

eikaf commented 7 years ago

Actually i have some problems getting the right DB for my country, I can login inside the configuration panel with the result i've got message "Ciao MyName" but when i start the plugin i've got foreign list of movies/tvshows, i think it's an issue linked with atv-ps-eu/atv-eu query in the plugin, but i can't figure it out. @Sandmann79 could help me out with this? Fiddler2 gives me back atv-ps-eu link when i play some video within webbrowser. How does the plugin work when it queries the amazon db? I'm trying to debug but i can't find out. Any help would be appreciated. :)

pfiol commented 7 years ago

@eikaf Did you succeeded? Kodi 17.0 is now official so all will soon have the inputstream-adaptive plugin required but the general addon is not ready yet.

vasundhar commented 7 years ago

For India, Requests seem to be going to https://fls-eu.amazon.fr/1/batch/1/OE/ https://atv-ps-eu.amazon.com I changed the url string as you can see below, and MarketplaceId based on what I captured. However I am not sure about the asin, firmware version.

01:40:07.225 T:1698575344 NOTICE: [Amazon VOD] {'asin': 'B01CIDM0FY', 'name': 'Dil Dhadakne Do', 'mode': 'PlayVideo', 'selbitrate': '0', 'trailer': '0', 'adult': '0'} 01:40:07.226 T:1698575344 NOTICE: [Amazon VOD] External Call 01:40:07.253 T:1698575344 NOTICE: [Amazon VOD] getURL: https://www.amazon.com/gp/deal/ajax/getNotifierResources.html 01:40:08.773 T:1698575344 NOTICE: [Amazon VOD] getURL: https://www.amazon.com/gp/video/streaming/player-token.json?callback=onWebToken_210 01:40:10.865 T:1698575344 NOTICE: [Amazon VOD] getURL: https://atv-ps-eu.amazon.com/cdp/catalog/GetPlaybackResources?asin=B01CIDM0FY&deviceTypeID=AOAGZA014O5RE&firmware=1&deviceID=63ff327e760252dd927e708b8669629ef6fb443754df3d1aa6be0d51&marketplaceID=ATVPDKIKX0DER&format=json&version=1&titleDecorationScheme=primary-content&resourceUsage=ImmediateConsumption&consumptionType=Streaming&deviceDrmOverride=CENC&deviceStreamingTechnologyOverride=DASH&deviceProtocolOverride=Http&audioTrackId=all&deviceBitrateAdaptationsOverride=CVBR%2CCBR&videoMaterialType=Feature&desiredResources=AudioVideoUrls%2CSubtitleUrls 01:40:12.785 T:1698575344 ERROR: [Amazon VOD] Cannot complete request. (prs.norights.notowned) 01:40:13.031 T:1958601648 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.amazon-test/?asin=B01CIDM0FY&mode=PlayVideo&adult=0&name=Dil+Dhadakne+Do&trailer=0&selbitrate=0]

Parufito commented 7 years ago

Hi @eikaf i'm from spain, and yesterday I started testing this plugin on Libreelec beta (Kodi 17)

First I get the error with the plugin player codec. But I installed the inputstream plugin and i get this OK

I can login to any country with my username (USA, DE, UK, i didn't try Japanese ;)) but then when I choose any media (the list varies his content) I get a message like "You can't reproduce that content on your country)

Looking on the Source code, I see a element in the plugin-configuration that is Other countries, but it seems to be disabled. Is possible to try with this? or is still in dev? @Sandmann79

I would like to contribute with the development of this plugin, with any help that i can offer

pfiol commented 7 years ago

Hi @Parufito I'm from Spain as well and faced exactly the same problem. Just to try, I tried to watch one video I know it is available in Spain and UK (any Grand Tour episode), and it no longer said "You can't reproduce that content on your country", but a "Due to DRM update in Amazon you can't display this content" (or something similar....

So, to play movies I think we would need to: 1- Solve this DRM problem, 2- Modify the addon in order to retrieve the correct video catalog (essentially all the new countries point to primevideo.com).

I can help on the second point, but have no clue on the first one...

Uukrull commented 7 years ago

@pfiol: For the first one, you need to compile the Kodi-agile branch: https://github.com/FernetMenta/kodi-agile, remove this check from the addon and, in the InputStream Adaptive settings, set the Stream Selection to Auto (for some reason it doesn't work if set to Manual).

image

I'm also from Spain and I watch the US catalog thanks to getflix, but I'd also like to watch the catalog from my country.

Uukrull commented 7 years ago

I almost forgot, @Sandmann79 you can use getflix to access Prime Video countries (they have a free 15 days trial)

image

Sandmann79 commented 7 years ago

I tested it some times ago with Cyberghost, but i needed a credit card to use primevideo.com site.

But i think the problem is, that the old api, which the addon use, doesn't support the new country's. Because i sniffed the Android App (Tablet) network traffic (thx for the hint with Charles @Uukrull) and saw they don't use the marketplaceId anymore, to assign the country. Within the App you have to first sign in, to get the content for your country.

So it's the best way to switch to the Android api, but its not easy to find the right parameters, to get all infos at one request. Because within the App, the response contains only the title and cover and many styling infos (which we don't need)

I'm sorry, but due a lack of time, i can't investigate further on this at the moment.

Uukrull commented 7 years ago

I tested it some times ago with Cyberghost, but i needed a credit card to use primevideo.com site.

From what I understand, with getflix set to a country that supports primevideo and your Amazon login/password, you should be able to log in.

Sandmann79 commented 7 years ago

I can log in to primevideo, but in the next step, they ask for a credit card.

Uukrull commented 7 years ago

Because i sniffed the Android App (Tablet) network traffic (thx for the hint with Charles @Uukrull) and saw they don't use the marketplaceId anymore, to assign the country. Within the App you have to first sign in, to get the content for your country.

Did you get the api.amazon.com traffic? With Charles Proxy or Fiddler and the Amazon app on my Tablet, all I get is this:

image

image

Sandmann79 commented 7 years ago

No i get the same result within the app. The server rejects the cert.

But you can sniff the traffic from the tv api with web browser. I have done it already and saw, that is used for the login/register process. With this you can pair your devices and get an token, which is valid for 1 hour.

You can test this by checking out the auth_token branch from addon. But in this branch is no inputstream playback possible at the moment.

pusherbox commented 7 years ago

any good news?

aviwad commented 7 years ago

BUMP

aviwad commented 7 years ago

any good news?

lrusak commented 7 years ago

I'd like to use this in Canada. I can login and see content however it says

Cannot complete request. (prs.norights.invalidgeoip)`

How can I help to get this working?

gillboy1989 commented 7 years ago

I changed the marketplace I'd for canada and used the new primevideo link which is atv-ps.primevideo.ca I am able to log in and see canada content but when I try to play video . It says wrong username and password.

Sandmann79 commented 7 years ago

@gillboy1989 Did you changed the BaseUrl variable to "www.primevideo.com/ca" or "www.amazon.ca"?

gillboy1989 commented 7 years ago

I added one more url as Login Url (www.amazon.com) and BaseUrl as www.primevideo.com. Actually, primevideo redirects to amazon.com for login, once you login to amazon.com then it redirects again back to primevideo.com.

It think in getFlashVars(asin) my CustomerId and sessionId get lost

I checked the kodi logs , I randomly gets one of the these 2 errors:

  1. unable to find the device ID 9
  2. Login attempt -message Wrong username password. Some how my stored credentials automatically gets cleared in the kodi userdata folder.

Do you know any debugger for kodi (am new to kodi programming stuff)? I will try to debug it on Weekend

lukesUbuntu commented 7 years ago

@gillboy1989 if you have any luck i am keen to see how you resolve this as i to have the same issue

Goruti commented 7 years ago

Hi @Sandmann79,

Is this add-on compatible with Amazon Prime Canada?

I don't see Canada as an option in the Country configuration. If I select US, I can login but afterwards I am getting "Content is not available in your Country".

Thanks! Diego

Uukrull commented 7 years ago

Some interesting news:

Amazon is likely making the Fire TV available globally very soon

It looks like Amazon will be making the Fire TV and/or Fire TV Stick available globally very soon. The new Fire TV software update, that just started rolling out to devices, has added several new country and language options, including Canada, Australia, Spain, Mexico, France, Italy, and Brazil. Historically, Amazon has only added new language and country options to the Fire TV’s settings when the device was being made available in a new country.

studd-dev commented 7 years ago

Hi there,

any good news regarding this?

axlt2002 commented 7 years ago

Yup, wondering if there are good news. I would be interested in using it in Italy.

Thanks for any info.

tug912 commented 6 years ago

Hi ! Thanks for you work. Is there any possibility (close or far) to make it work with French Amazon accounts ?

Thanks.

pusherbox commented 6 years ago

Best thing to do ATM is to buy Amazon Fire Stick...

Wheemer commented 6 years ago

I really want to get this working well within Canada, I've got some shows working but most say not available in my country. Is there any work arounds?

oomek commented 6 years ago

Is this plugin limited to only German Amazon? I have a UK Prime account and when I log in half of the fanart is in German. When I try to play I get an error anyway.

Sandmann79 commented 6 years ago

@oomek Did you choose the right country in settings?

oomek commented 6 years ago

I do not see any country selection in the plugin settings. Maybe I’m blind do please enlighten me.

Sandmann79 commented 6 years ago

The option is located at setting > connection and only available at Amazon VOD Addon. The other Addon is only for german accounts.

oomek commented 6 years ago

Ooh, ok, I see it now. I’ve had the other addon installed. Unfortunately the VOD addon is not even displaying the movies list, which worked on the other addon.