Sandmann79 / xbmc

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

amazon vod not working - Partner Service APIs have been turned off #660

Closed tux4you closed 1 year ago

tux4you commented 1 year ago

Addon used

Account type

System Setup (please provide the following information):

Upload Logs

2022-12-01 09:05:18.101 T:5803 INFO : [Amazon VOD] getURL: https://atv-ps-eu.amazon.de/cdp/catalog/Browse?firmware=fmw:28-app:5.2.3&deviceTypeID=.... 2022-12-01 09:05:18.183 T:5803 ERROR : [Amazon VOD] Error reason: 404 error (NoRetries)

Describe the bug

hi guys and thanks for the great work ...

since yesterday the plugin stops working if i enter the url in the browser, i get: Partner Service APIs have been turned off

is this problem known? do you need some other informations?

kind regards, ronny

Varstahl commented 1 year ago

This is news to me, will need to check, possibly needs @Sandmann79 or someone who worked on it to know for sure.

tux4you commented 1 year ago

This is news to me, will need to check, possibly needs @Sandmann79 or someone who worked on it to know for sure.

me to yesterday, thank you ;)

fry-1 commented 1 year ago

I can confirm the problem: Hardware: x86_64 OS version: Linux Mint 21 Vanessa Kodi version number: 19.4 Addon version: 0.9.6 and 0.9.6+matrix.1

I would like to add that the channels are still partly working but movies, tv-shows, watchlist and search have stopped working since yesterday.

tux4you commented 1 year ago

yesterday, i activated the webapi (beta) after that, the app menu was completely different, but some movie and shows are working. some not all, very strange (will have a look in the logfile later). this setting is very slow in finding some entries.

nachetoschetos commented 1 year ago

I can confirm the problem as well: Hardware: Raspberry pi 3 OS version: Libreelec Kodi version number: 19.4 Addon version: 0.9.6

No movies list and partly channel list

gouppe commented 1 year ago

same for me https://paste.osmc.tv/rekegapifi

katerasrael commented 1 year ago

Same here:

Hardware: Raspberry pi 3 OS version: Libreelec Kodi version number: 18.9 Addon version: 0.9.6

No listings in the categories at all.

DiGilli commented 1 year ago

Same here on two different systems: (1) Hardware: Raspberry pi 3 OS version: Libreelec 9.2.8 Kodi version number: 18.9 Addon version: 0.9.4 -> all listing gone bar some channels (which do play)... (2) Hardware: Raspberry pi 3+ OS version: Libreelec 10.0.3 Kodi version number: 19.4 Addon version: 0.9.6 -> all listings gone, nothing plays, after sign-out, no more sign-in possible...

anhoh commented 1 year ago

I can confirm this as well. No listings in watchlist, shows, movies, library etc... Login is still possible and exported strm. files are also still playable.

Hardware: Raspberry Pi 4 OS Version: LibreElec 10.0.3 Kodi version number: 19.4 Addon version: 0.9.6

stefri commented 1 year ago

I can confirm this as well. No listings in watchlist, shows, movies, library etc... Login is still possible and exported strm. files are also still playable.

Hardware: Raspberry Pi 4 OS Version: LibreElec 10.0.3 Kodi version number: 19.4 Addon version: 0.9.6

Same config ... same problem :-(

Varstahl commented 1 year ago

What a terrible time to fall sick D: I'll try to get to is asap

MarauderPF commented 1 year ago

For me it worked out that I had to delete the cashes in the App-setting and swich to webapi (kodi on raspi4) Hope this helps!

DiGilli commented 1 year ago

For me it worked out that I had to delete the cashes in the App-setting and swich to webapi (kodi on raspi4) Hope this helps!

Despite not quite understanding how your suggestion would overcome the issue described by others and me (certainly not the no-sign in issue on Matrix), I tried it out ... no effect, on both systems (see my earlier post f details) no change to the situation.

MarauderPF commented 1 year ago

I started from the same point describrd in the entry post. No watchlist, no movies displayed. Tried around with installing from different repos, several reboots - but behaviour keept the same. Then I tried the activating the (beta) Web-api Option ind Amazon.tld and after that delete Caches in the Prime Video Tab. Now I'm able to access my movies and TV-Shows again for an hour. But now it's buggie again. Somethings work some things dont. I think I was a bit too enthusiastic...

anhoh commented 1 year ago

For me it worked out that I had to delete the cashes in the App-setting and swich to webapi (kodi on raspi4) Hope this helps!

Thank you for the attempted solution. I have tested it and it works partially. I get access to the watchlist and library again this way. Very slow on the first start though. Categories and recommendations are partially displayed, but partially again an error message.

But this seems to be a start.

Atomisirsi commented 1 year ago

I also had problems with the category listings after switching to the Web-API, but found a workaround at https://www.kodinerds.net/index.php/Thread/44211-Release-Amazon-Prime-Instant-Video/?postID=702527#post702527 The forum post suggest replacing line 954 of network.py by newPath = '/gp/video' + up.path.replace('/gp/video', '')

I am using amazon.de with version 0.9.6+matrix.1 of the plugin.

Varstahl commented 1 year ago

Yes, I have a "fix" in the pipeline, (also it would be just newPath = up.path), but regardless there were other problems which is why I didn't release that as an update immediately, and then everything went down crashing and burning.

Edit: Specifically, the fix suggested is not a fix, because it's rather a regression in functionalities, and I was about to look into that when I've started having 39°C+ fever, so I barely remember what I was working on.

forty875 commented 1 year ago

Hello, have the same problem with german prime video store. This is the url i'm using "https://atv-ps-eu.amazon.de/cdp/catalog/Browse" I get same error "Partner Service APIs have been turned off". Does amazon have a new api endpoint url? How to get asin for series and episodes now?

Varstahl commented 1 year ago

You might try enabling Web Api from the addon setting, and then clearing cache. Some thing will work, some won't.

dtechniker commented 1 year ago

That has helped me. Thanks

nandbert commented 1 year ago

Where is this "Web Api" button in the settings? (Addon version: 0.9.6+matrix.1)

tux4you commented 1 year ago

Where is this "Web Api" button in the settings? (Addon version: 0.9.6+matrix.1)

hi ... did you found it? in the vod app settings, maybe expert needed, the last entry is amazon.tld (left side). there you can find it

nandbert commented 1 year ago

@tux4you Thanks, this was actually very helpful to me. I never noticed that the buttons on the left side can be scrolled, and there are some below "Miscellaneous" :roll_eyes:

alexlancaster commented 1 year ago

the previous workaround of enabling "Web API" and logging-out/logging-in again, stopped working for me today with the version 0.9.6+matrix.1. it was working up to a few days ago, here's a bit of the log:

022-12-10 00:40:47.086 T:12173    INFO <general>: [Amazon VOD] proxy.py:333 [PS] Parsing languages
2022-12-10 00:40:47.095 T:12173    INFO <general>: [Amazon VOD] proxy.py:346 [PS] Altering <AdaptationSet>s
2022-12-10 00:40:49.918 T:12173    INFO <general>: [Amazon VOD] proxy.py:188 [PS] Chunked transfer: last chunks
2022-12-10 00:40:49.922 T:12171    INFO <general>: AddOnLog: inputstream.adaptive: Successfully parsed .mpd file. #Periods: 1, #Streams in first period: 91, Type: VOD, Download speed: 1896933.7328 Bytes/s
2022-12-10 00:40:50.246 T:12171   ERROR <general>: AddOnLog: inputstream.adaptive: Unable to find license;hdcpEnforcementResolutionPixels in JSON string
2022-12-10 00:40:50.246 T:12171   ERROR <general>: AddOnLog: inputstream.adaptive: License update not successful (no keys)
2022-12-10 00:40:50.255 T:12171   ERROR <general>: AddOnLog: inputstream.adaptive: Initialize failed (SingleSampleDecrypter)

Tried reinstalling Widevine - no luck there either. So now nothing works.

stsichler commented 1 year ago

@alexlancaster

Tried reinstalling Widevine - no luck there either. So now nothing works.

Your log extract still points to a Widevine-related problem, so it seems unrelated to this issue here. I guess the WebApi workaround is still working for you? Meaning you still can access your watchlist, e.g. ?

Perhaps you can try to fully reset Widevine by deleting the .kodi/cdm/widevine folder and all *.init, *.challange and *.response files in .kodi/cdm/. Hope this helps.

ksapp-dell commented 1 year ago

Yesterday i realized that the plugin does not work any more and i tried the 'WEB-API' option today and it partly works now. (Kodi 19.4 - RaspberryPi OS Compute Module 4).

Thanks for the hint.

alexlancaster commented 1 year ago

@alexlancaster

Tried reinstalling Widevine - no luck there either. So now nothing works.

Your log extract still points to a Widevine-related problem, so it seems unrelated to this issue here. I guess the WebApi workaround is still working for you? Meaning you still can access your watchlist, e.g. ?

yes, that part works. I can see the watchlist and episodes

Perhaps you can try to fully reset Widevine by deleting the .kodi/cdm/widevine folder and all *.init, *.challange and *.response files in .kodi/cdm/. Hope this helps.

Thanks for the tip - I was hoping it was a Widevine issue. So I just tried your solution too. It fully reinstalled Widevine from scratch after I tried playing an episode. Unfortunately playback still doesn't work got a similar error:

2022-12-10 15:59:49.276 T:25864    INFO <general>: [Amazon VOD] proxy.py:188 [PS] Chunked transfer: last chunks
2022-12-10 15:59:49.280 T:25860    INFO <general>: AddOnLog: inputstream.adaptive: Successfully parsed .mpd file. #Periods: 1, #Streams in first period: 91, Type: VOD, Download speed: 3819079.9160 Bytes/s
2022-12-10 15:59:50.297 T:25860   ERROR <general>: AddOnLog: inputstream.adaptive: Unable to find license;hdcpEnforcementResolutionPixels in JSON string
2022-12-10 15:59:50.297 T:25860   ERROR <general>: AddOnLog: inputstream.adaptive: License update not successful (no keys)
2022-12-10 15:59:50.320 T:25860   ERROR <general>: AddOnLog: inputstream.adaptive: Initialize failed (SingleSampleDecrypter)

So maybe this should be a separate issue in the tracker?

stsichler commented 1 year ago

So maybe this should be a separate issue in the tracker?

Hm. For me, that seems more like an issue related to inputstream.adaptive. Perhaps you might place it there.

ripper81 commented 1 year ago

Might be a stupid question, but where can i find the setting to switch to the webapi?

I did a fresh install of my system (Kubuntu 22.10), after installing Kodi and the addon i realized that the addon is not working anymore.

LorenzBuehmann commented 1 year ago

@ripper81 it has been explained already in comment https://github.com/Sandmann79/xbmc/issues/660#issuecomment-1343945464

DiGilli commented 1 year ago

Yes, I have a "fix" in the pipeline, (also it would be just newPath = up.path), but regardless there were other problems which is why I didn't release that as an update immediately, and then everything went down crashing and burning.

Edit: Specifically, the fix suggested is not a fix, because it's rather a regression in functionalities, and I was about to look into that when I've started having 39°C+ fever, so I barely remember what I was working on.

Thanks for working on this Varstahl. May I reiterate that on top of the missing watch list issues (on some but apparently not all l, however, an increasing number of systems as it seems), there are two more aspects: 1) WebAPI beta activation does not change behaviour of missing watch lists on leia18.9/AmzVODv0.9x systems 2) newly setup matrix/AmzVODv0.96 configurations do not seem to allow users to sign into Amz accounts now (wheel show up for long periods of varying time before one gets kicked out of AmzVOD ending up in matrix/Video menu). This is reproducible on newly installed systems, at least in the UK using AmzUK accounts. What are your thoughts/solution suggestions please? 🙏 Thx in advance G

Varstahl commented 1 year ago

newly setup matrix/AmzVODv0.96 configurations do not seem to allow users to sign into Amz accounts now (wheel show up for long periods of varying time before one gets kicked out of AmzVOD ending up in matrix/Video menu). This is reproducible on newly installed systems, at least in the UK using AmzUK accounts. What are your thoughts/solution suggestions please?

The problem is that I'm the dev responsible for the PrimeVideo.com section of things. As I don't have access to amazon.de prime, for example, I've never been able to troubleshoot those, but my partner in crime is possibly even busier than I am, so idk. We'd have to find a way to debug these, but I'm not sure of the way forward.

Isolator70 commented 1 year ago

...As I don't have access to amazon.de prime, for example...

@Varstahl:

Question 1: Is it only a problem of the German (.de) Amazon Prime? Question 2: Would it help if I pay you one month Amazon Prime to be able to debug? Maybe also others could support if this helps...

Do you have other needs for debugging this issue?

Thanks in advance, I really appreciate your work and would be too happy if the plugin would work again :-)

PS: Doing it via your proposed workaround it seems to work for me at a first glance (movie starts...)

(RPi4, Libreelec 9.28, Prime 0.96)

katerasrael commented 1 year ago

I'll second the proposal - post me a paypal-adress!

yoshimo commented 1 year ago

Would verbose logging with every logging option ticked help to figure this one out? Web API and Germany doesn't cut it for me and only gets me trapped in a captcha loop

simonbuehler commented 1 year ago

Using also Amazon in Germany, after captcha and no login I got a mail from Amazon UK that a device tried to log in, maybe this is relevant as I expected this to come from Amazon Germany

ksapp-dell commented 1 year ago

Hi, may be this helps: Did you try to disable 2 Factor authentication in Amazon ? Some time ago that helped me to log into Amazon.de. I don't know if it helps this time, but it is worth a try. I will not try this because my Kodi is still logged in and working most of the time.

polocatfan commented 1 year ago

addon didn't work, but enabling web api fixed it for me.

cow-crash commented 1 year ago

I anybody working on a fix?

rlees85 commented 1 year ago

Having exactly the same issue on CoreElec (latest stable) and Amazon VOD 0.9.6 using Amazon Prime UK. Just logon/captcha loop. Tried resetting my Amazon account, changing password, no symbols (encoding problems etc), everything. The most extended logging options reveal nothing its just loading the captcha page over and over again...

I understand this adds nothing more than at least you are not the only person having this issue and its not just amazon.de

cow-crash commented 1 year ago

Yes, I have a "fix" in the pipeline, (also it would be just newPath = up.path), but regardless there were other problems which is why I didn't release that as an update immediately, and then everything went down crashing and burning.

Edit: Specifically, the fix suggested is not a fix, because it's rather a regression in functionalities, and I was about to look into that when I've started having 39°C+ fever, so I barely remember what I was working on.

@Varstahl - are you working on a fix?

ducarpit commented 1 year ago

Having exactly the same issue on CoreElec (latest stable) and Amazon VOD 0.9.6 using Amazon Prime UK. Just logon/captcha loop. Tried resetting my Amazon account, changing password, no symbols (encoding problems etc), everything. The most extended logging options reveal nothing its just loading the captcha page over and over again...

I understand this adds nothing more than at least you are not the only person having this issue and its not just amazon.de

I have the same problem in a Raspberry PI3B, at the first the app ask me the email and the password and then ask me to reinsert the password and a captcha, but at this point there is a "captcha and password request loop" and i can't login on my account (with both standard and web-api mode) :(

rocktobe commented 1 year ago

Hi all,

Same problem for me Amazon vod is not working sinds 1st of January. Hardware: Raspberry pi 3 OS version: Libreelec 9.2.8 Kodi version number: 18.9 Addon version: 0.9.6

Everytime I try to connect, I receive the same message : " no credentials present, please go to settings to sign in"

Well my user and pasword do work (amazon.com.be). I also disabled SSL certifcate verification but it doesn't help.

Does anyone have found a solution yet?

I'm clueless...

Thanks in advance

EngineerGuy314 commented 1 year ago

Is this something Amazon is doing on purpose to deliberately block access from 3rd party software? Any progress on fixing this? Thanks!

ducarpit commented 1 year ago

Is there a way to copy and paste a configuraion (or a whole configurations file) from a funtioning configuration file in a RPI3 to another new RPI3 with the same OS and addon? I don't know where the addons store the confiurations, maybe i can make a copy of them and restore in the other RPI. Do you think it is possible?

Abbaddon911 commented 1 year ago

Got the same issues as the others, maybe even more due to running openELEC 11 (Kodi 20) and I'm on a self build x86_64 machine. Also, I'm not using the "web API" thing because that thing is so slow that it's unusable...or I'm too stupid to use it correctly. I should probably also note that I'm on amazon.de and using the "0.9.6+matrix.1" version, which worked in the nightly 11 versions.

Now to my findings when trying to access my watchlist. First I got an 404 error with the URL being: "https://www.amazon.de/gp/video/api/myStuffWatchlist" (notice the missing "/" between "myStuff" and "Watchlist")

So I went and looked through the files to see which one contains that "/gp/video/api/myStuff" string. It's "atv_api.py" on line 660 (no pun intended). I added the missing "/" and tried again, still a 404 error with the URL this time being: "https://www.amazon.de/gp/video/api/myStuff/Watchlist"

Next I tried to open that URL in my browser and got the typical "the page you're looking for doesn't exist" from Amazon, so I went to amazon.de, into prime video and to my watchlist to compare the URLs and changed the line in "atv_api.py" accordingly to: "/gp/video/api/mystuff/" (notice the lowercase "s" in "mystuff" this time) This is the URL I get in my browser when I'm in my watchlist.

Now the 404 error is gone, but the add-on is complaining that I have to log in again and the log shows: "error : [Amazon VOD] Cookie invalid"

So I try to log in again, and now I'm stuck in an endless captcha loop with the username (email) and password containing no special characters and 2FA already turned off because I'm sharing that account with my family.

Maybe the cookie is referencing the old path, thus making it invalid, and the log in routine as well, which explains the captcha loop?

Maybe worth to note is that libreELEC and the add-on are all set to German, both language, keyboard layout and region, yet the log displays: "info : [Amazon VOD] Locale: en-us / Language: de"

Hope my findings are helping to a degree with fixing this and if anyone has an idea to why I'm stuck in that captcha loop, any help is appreciated.

Edit: Tried running with "web api" and apparently it's supposed to take a while when first using it. Only issue I have with it, paid content is NOT marked or filtered out, not even prime content is marked in any way. Is there a way to filter paid content out or have it in red text again?

trapau1 commented 1 year ago

Is there a status update on this issue? Is it permanently broken?

M-Reimer commented 1 year ago

I guess it's safe to say that we can completely forget about the "previous API". Either there is some alternative API which can be used or "Web API" has to be the new default from now on. Some things work and others seem to cause errors. If this helps I can capture some error messages. Just a few days ago I watched a full movie on Prime Video so in theory it should still be possible to make it work.

steinhelten commented 1 year ago

So, just for a point of reference, Roku still supports Amazon VOD, so there must be an API that works. Maybe they are using the Web API, I don't know

On Mon, Feb 20, 2023 at 9:10 AM Manuel Reimer @.***> wrote:

I guess it's safe to say that we can completely forget about the "previous API". Either there is some alternative API which can be used or "Web API" has to be the new default from now on. Some things work and others seem to cause errors. If this helps I can capture some error messages. Just a few days ago I watched a full movie on Prime Video so in theory it should still be possible to make it work.

— Reply to this email directly, view it on GitHub https://github.com/Sandmann79/xbmc/issues/660#issuecomment-1437168823, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRSEGG2SLYTV4GVSTYF2ODWYOCODANCNFSM6AAAAAASQQCIUU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

trapau1 commented 1 year ago

I have been using the web api since late last year with no issues. since about a week ago I cant get to TV show watch list. Movies appear to be fine. Have cleared cache many times. Reinstalled. Happens on multiple machines. These are Windows 10 machines. Matrix. Thanks.