Sandmann79 / xbmc

Prime Video Addon for Kodi Media Center
https://forum.kodi.tv/showthread.php?tid=349255
GNU General Public License v3.0
760 stars 191 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

AxelG-DE commented 1 year ago

Pity is, web-api is way slower, less convenient (e.g. does not show versions to be paid and free in diff. colors as before) and has hick ups here and there (errors appear when entering a folder) 

Varstahl commented 1 year ago

Is there a status update on this issue?

Short story is, Web API is the only path forward, will be enabled in the next release.

The amount of bad luck I've been on the receiving end of is insane, I was about to resume working and try to fix these issues, then I've been hit with the australian flu. I need an exorcist.

Abbaddon911 commented 1 year ago

Short story is, Web API is the only path forward, will be enabled in the next release.

As long as we get any indicator which content is covered with my regular prime subscription, or which I already purchased, and which I'd have to pay for separately, I'd be able to live with that. Having the entries which I'd have to pay for in red text is the only thing I'm really missing so far.

The amount of bad luck I've been on the receiving end of is insane, I was about to resume working and try to fix these issues, then I've been hit with the australian flu. I need an exorcist.

That sounds horrible, hope you'll be spared from bad luck from now on.

AxelG-DE commented 1 year ago

@Varstahl from my side best wishes for a smoother futer and fortune, too.

Like @Abbaddon911 said, this notifier for free/purchased/rent&buy would be very helpful.

I donno why web-api is slower than previous technology. Me, I just changed from raspberry3+ to nuc11 as the rpi cannot reasonably handle web-api (unbearably slow). With nuc, there is enough power, but faster is always better :)) and I assume we still have many rpi users...

Besides, sometimes I get errors when selecting a folder but message disappears too fast.

ducarpit commented 1 year ago

However, i tried to set my Amazon VOD addon in WebAPI mode and cleared the cache. At the first start, it asked me for the username and the password, and i inserted them; it says "Credentials not found" at the first addon boot in the upper side banner and immediatly it asked me to re-enter the password and the captcha code, so i did it! But there was a loop with the password and captcha request and i can't get it work :( Are there other parameters i have to set? Is there a simple guide to set up the addon via WebAPI mode? Is there a way to set up the credentials via configuration file instead of the GUI? Thanks a lot Christian

PS: i have another Raspberry with the Amazon VOD addon configurated and there it works fine! Is there a way to backup/download (via SSH/SCP for example) the configuration file with the credentials and upload/restore it on the other Raspberry?

Abbaddon911 commented 1 year ago

I donno why web-api is slower than previous technology.

@AxelG-DE just guessing here, and I could be wrong, but I think it's because the Web-API is crawling a lot more data than the previous API. Like, the previous only did the bare minimum like checking which movies or series are on your watch list, whereas the Web-API also crawls all other related data in the same query.

I noticed that the Web-API had all seasons, episodes and specials for "Doctor Who" listed and ready to use when I only had season 1 on my watch list.

frudolph77 commented 1 year ago

Hey. it seems that there is a wide range of problems. The Web-API never worked well on my installation. Haven't watched any series or movie since switching to Web-API, because my watchlist always stays empty.

I'll tried to use it today but for now I got a popup with an error Unable to find the navigation menu for primevideo.com followed by an endless loading spinner, even after logging out and in. At least the login works, I also got an email from amazon.co.uk as already mentioned.

I'm in Germany using Amazon Prime with an amazon.de account.

retrofreak83 commented 1 year ago

I can confirm the error regarding Unable to find the navigation menu for primevideo.com. The addon used to work just fine using the Web-API until yesterday.

emc02 commented 1 year ago

Anything new here? Prime AddOn is currently not usable. Are there any Versions or Changes to test something? (I am able to edit program code etc.. just tell me what I could try)

AxelG-DE commented 1 year ago

I can confirm the error regarding Unable to find the navigation menu for primevideo.com. The addon used to work just fine using the Web-API until yesterday.

on my freshly installed intel NUC it still works ok-ish

AxelG-DE commented 1 year ago

I donno why web-api is slower than previous technology.

@AxelG-DE just guessing here, and I could be wrong, but I think it's because the Web-API is crawling a lot more data than the previous API. Like, the previous only did the bare minimum like checking which movies or series are on your watch list, whereas the Web-API also crawls all other related data in the same query.

I noticed that the Web-API had all seasons, episodes and specials for "Doctor Who" listed and ready to use when I only had season 1 on my watch list.

Nahhh it is not just crawling.

ducarpit commented 1 year ago

Nahhh it is not just crawling.

  • like I said, on my NUC it works quite o.k. in tearms of spead, but...
  • on my old raspberry 3+ the web-api was slow in anything. Opening a movie was suuuuper slow, sometimes no audio and after reboot it has audio, or you see the sandglas-donut (shows how long you gotta wait) after movie start and sometimes during the movie, so movie got interrupted and you saw donut again....

@AxelG-DE how did you configure he addon on your NUC? I have a fresh Raspberry Pi3B+ and it always says "Credentials not found" and asks for captcha continuosly :(

DiGilli commented 1 year ago

Hey. it seems that there is a wide range of problems. The Web-API never worked well on my installation. Haven't watched any series or movie since switching to Web-API, because my watchlist always stays empty.

I'll tried to use it today but for now I got a popup with an error Unable to find the navigation menu for primevideo.com followed by an endless loading spinner, even after logging out and in. At least the login works, I also got an email from amazon.co.uk as already mentioned.

I'm in Germany using Amazon Prime with an amazon.de account.

Can also confirm this 'Unable to ....' error followed by the endless spinner. I am on a UK Amazon Prime account and operating from within the UK. Up to yesterday evening, App was useable (albeit painstakingly slow due to Web-API issues on about 4/5 occasions).

emc02 commented 1 year ago

Hey. it seems that there is a wide range of problems. The Web-API never worked well on my installation. Haven't watched any series or movie since switching to Web-API, because my watchlist always stays empty. I'll tried to use it today but for now I got a popup with an error Unable to find the navigation menu for primevideo.com followed by an endless loading spinner, even after logging out and in. At least the login works, I also got an email from amazon.co.uk as already mentioned. I'm in Germany using Amazon Prime with an amazon.de account.

Can also confirm this 'Unable to ....' error followed by the endless spinner. I am on a UK Amazon Prime account and operating from within the UK. Up to yesterday evening, App was useable (albeit painstakingly slow due to Web-API issues on about 4/5 occasions).

Same for me with amazon.de I tried to reinstall the Addon and now the captcha on login is not visible anymore. So I can't login...

Abbaddon911 commented 1 year ago

One week not at home and the add-on breaks fully. I also get the navigation menu error, but I also dug a bit in the log to see what's happening, and there's another error right before the one that's shown. web_api.py:449 Watchlist link not found Looking into the web_api file, it's very clear that the issue is with lines 435-447 where the add-on tries to parse the navigation menu looking for the label "pv-nav-mystuff". Looking at the source on amazon.de, you can see that this was renamed to "pv-nav-my-stuff", but changing that in lines 441 and 445 sadly didn't fix the issue. Sadly, the add-on doesn't show which URL exactly it's trying to open in the log, so I'm kinda at the end of my knowledge. I also don't know if there's any way to get kodi or the add-on to log the URLs they try to open to dig a bit more.

Sandmann79 commented 1 year ago

As you all have noticed, the "old" Api was switched off. The support for the devices, which used this api, was already discontinued in 2015 by Amazon and since then more and more limited in functionality. So it is clear that this moment had to come. An adequate replacement for this is not known to me.

Last I had worked on the integration of the Android Api, but it is still in alpha stage. You can find it in the android_api branch.

AxelG-DE commented 1 year ago

Nahhh it is not just crawling.

  • like I said, on my NUC it works quite o.k. in tearms of spead, but...
  • on my old raspberry 3+ the web-api was slow in anything. Opening a movie was suuuuper slow, sometimes no audio and after reboot it has audio, or you see the sandglas-donut (shows how long you gotta wait) after movie start and sometimes during the movie, so movie got interrupted and you saw donut again....

@AxelG-DE how did you configure he addon on your NUC? I have a fresh Raspberry Pi3B+ and it always says "Credentials not found" and asks for captcha continuosly :(

That endless Captcha thingie.... Here is what I found on my end, not necessarily valid for anyone else:

So at the moment (I am on amazon.de) my NUC works quite o.k.-ish but I mostly use "search" and find movies or series by that search and the streaming works then quite alright...

docmattes commented 1 year ago

As you all have noticed, the "old" Api was switched off. The support for the devices, which used this api, was already discontinued in 2015 by Amazon and since then more and more limited in functionality. So it is clear that this moment had to come. An adequate replacement for this is not known to me.

Last I had worked on the integration of the Android Api, but it is still in alpha stage. You can find it in the android_api branch.

The WebAPI worked well. But Amazon made massiv changes on their website. Now the tags for the mainmenu and watchlist can't be found in the "home" var. Retrived by "home = GrabJSON(self._g.BaseUrl + ('' if self._g.UsePrimeVideo else '/gp/video/storefront'))"

nandbert commented 1 year ago

As you all have noticed, the "old" Api was switched off. The support for the devices, which used this api, was already discontinued in 2015 by Amazon and since then more and more limited in functionality. So it is clear that this moment had to come. An adequate replacement for this is not known to me.

Last I had worked on the integration of the Android Api, but it is still in alpha stage. You can find it in the android_api branch.

Not sure if I understand this right. What is the recommended approach to watch Amazon movies on Kodi for the time being?

huizhaecka commented 1 year ago

I found a solution for the watchlist: original code: watchlist = next((x for x in home['mainMenu']['links'] if 'pv-nav-mystuff' in x['id']), None) self._catalog['root']['Watchlist'] = {'title': self._BeautifyText(watchlist['text']), 'lazyLoadURL': watchlist['href']} working now: navnodes = next((x for x in home['nav']['navigationNodes'] if 'pv-nav-my-stuff' in x['id']), None) watchlist = next((x for x in navnodes['subMenu'][0]['subNodes'] if 'pv-nav-my-stuff-watchlist' in x['id']), None) self._catalog['root']['Watchlist'] = {'title': self._BeautifyText(watchlist['label']), 'lazyLoadURL': watchlist['url']}

this is only an example, as I understand, the webapi needs substantial rewrite.

Abbaddon911 commented 1 year ago

Tried your working code, but it didn't work for me on amazon.de. Log is now showing Unable to parse the navigation menu for primevideo.com but also showing that it is starting with "amazon.de/gp/video/storefront" which I'm able to open in my browser. Looking through the source on amazon.de, I didn't find "pv-nav-my-stuff-watchlist" at all, maybe that's my issue here? More probably my issue is that I have no real clue how that code actually works, I'm just guessing.

superdan77 commented 1 year ago

beta works installed brand new on 19. Italy

ducarpit commented 1 year ago

beta works installed brand new on 19. Italy

@superdan77 hi, which version are you trying?

27hectormanuel commented 1 year ago

674

plugin.video.amazon-test-0.9.7~beta.zip

plugin.video.amazon-test-0.9.7~beta+leia.zip

plugin.video.amazon-test-0.9.7~beta+matrix.zip

superdan77 commented 1 year ago

beta works installed brand new on 19. Italy

@superdan77 hi, which version are you trying?

matrix

ducarpit commented 1 year ago

beta works installed brand new on 19. Italy

@superdan77 hi, which version are you trying?

matrix

@superdan77 thank you so much! The beta versione witout Kodi version (the first) in which Kodi works? In the older versions?

superdan77 commented 1 year ago

@ducarpit cant remember and cant verify now cause im at work, but anyway i downloaded and installed kodi 19 one week ago, so i presume the last version

ducarpit commented 1 year ago

I can confirm i tryied the new beta 0.9.7 matrix on my Raspberry Pi 3 where the 0.9.6 version not work and now it seems all OK 👍 I hope it will be released soon as stable version with matrix and nexus (Kodi 20) compatibility...

EnerGeh commented 1 year ago

674

plugin.video.amazon-test-0.9.7~beta.zip

plugin.video.amazon-test-0.9.7~beta+leia.zip

plugin.video.amazon-test-0.9.7~beta+matrix.zip

Works for me on libreelec 10 x86/amd64 branch (intel nuc). I simply installed the 0.9.7 matrix beta over the broken 0.9.6 version from the sandmann repo. Worked instantly without any further authentication, cache flush or cookie deletion. After that I upgraded to libreelec 11 inplace without any issue and the plugin is still working. So the matrix version also works fine on kodi nexus.

emc02 commented 1 year ago

Same for me with amazon.de I tried to reinstall the Addon and now the captcha on login is not visible anymore. So I can't login...

Any solution here? Tried the new beta Version (matrix) but there is no captcha on login screen (even on 5th attempt)...

yoshimo commented 1 year ago

log.zip I attempted a login with beta3, no dice but maybe the logfiles help. There is no 2FA enabled on this account

eggbeater98 commented 1 year ago

How are you installing the beta version? Is there a different repository for it?

Edit: Please pardon my prior ignorance. I downloaded the ZIP file linked above and used "Install via zip file". It updated the add-in and I'm happy to say I can stream again! Thank you for all the work you've put in to this fix.

For reference, I'm running OSMC January 2023 (Kodi Matrix 19.5) on an RPi 2

DiGilli commented 1 year ago

674

plugin.video.amazon-test-0.9.7~beta.zip

plugin.video.amazon-test-0.9.7~beta+leia.zip

plugin.video.amazon-test-0.9.7~beta+matrix.zip

@27Hector, thanks for posting here And @Sandmann79, massive thanks for taking the lead in making thus work again ... very very much appreciated !!! (Needless to add that v0.97beta on leia works like charm ...)

ducarpit commented 1 year ago

Why the 0.9.7 version isn't in the stable channel yet? Only the 0.9.6 is available....

the-isz commented 1 year ago

Thanks to everyone for working on this plugin!

Unfortunately, I can't install the test version:

error <general>: CAddonInstallJob[plugin.video.amazon-test]: failed to find dependency script.module.mechanicalsoup

On Kodi Nexus (20.1), I'm supposed to install plugin.video.amazon-test-0.9.7~beta.zip, right?

frudolph77 commented 1 year ago

I've had the same issue, just install the 0.9.6 from the repository, to resolve the dependencies, and then install the lastest beta from here https://github.com/Sandmann79/xbmc/issues/674#issuecomment-1474767178

the-isz commented 1 year ago

I've had the same issue, just install the 0.9.6 from the repository, to resolve the dependencies, and then install the lastest beta from here #674 (comment)

Thank you! With that trick, I was able to install the beta.

Unfortunately, I wasn't able to log in afterwards. I was repeatedly asked to enter my password plus a captcha ("for improved safety, enter your password again") but could never successfully finish.

Unless someone knows this issue, I will reproduce it later this week with advanced logging enabled, but right now, I'm too annoyed from entering my long and cryptic password 10 times...

EngineerGuy314 commented 1 year ago

Really stupid question: The beta file linked in this thread is 0.9.7. The version you download from the master releases is 1.0.4.

So is the master release version already newer (and includes the same fix) as this beta version?

I am sorry, the versioning scheme of github is new to me. Thanks for any light you can shed...

frudolph77 commented 1 year ago

Really stupid question: The beta file linked in this thread is 0.9.7. The version you download from the master releases is 1.0.4.

So is the master release version already newer (and includes the same fix) as this beta version?

I am sorry, the versioning scheme of github is new to me. Thanks for any light you can shed...

There are no stupid questions.

It's just a little confusing but what you can download from the releases is NOT the plugin itself, it's the plugin repository. Check the different filenames. This GitHub Repo contains multiple Kodi Plugins and not just one.

cow-crash commented 1 year ago

New error. the plugin has an error on start: 2023-03-30 18:47:15.257 T:1472177024 ERROR: [Amazon VOD] Unable to parse the navigation menu for primevideo .com then nothing happens, only the busy circle 8(

the-isz commented 1 year ago

Unfortunately, I wasn't able to log in afterwards. I was repeatedly asked to enter my password plus a captcha ("for improved safety, enter your password again") but could never successfully finish.

Unless someone knows this issue, I will reproduce it later this week with advanced logging enabled, but right now, I'm too annoyed from entering my long and cryptic password 10 times...

I retried with verbose logging enabled, but I don't see any error messages in the log:

2023-03-31 11:35:08.055 T:414      info <general>: CActiveAESink::OpenSink - initialize sink
2023-03-31 11:35:08.075 T:414      info <general>: PulseAudio: Opened device alsa_output.platform-fef00700.hdmi.hdmi-stereo in pcm mode with Buffersize 150 ms Periodsize 50 ms
2023-03-31 11:35:10.580 T:366     error <general>: Control 55 in window 10025 has been asked to focus, but it can't
2023-03-31 11:35:11.668 T:17531    info <general>: [Amazon VOD] startup.py:39 Requested {}
2023-03-31 11:35:21.477 T:17531    info <general>: [Amazon VOD] startup.py:39 Requested {'mode': 'remLoginData'}
2023-03-31 11:35:27.832 T:17531    info <general>: [Amazon VOD] startup.py:39 Requested {'mode': 'LogIn'}
2023-03-31 11:35:27.845 T:17531    info <general>: [Amazon VOD] network.py:587 Login
2023-03-31 11:35:27.879 T:17531    info <general>: [Amazon VOD] network.py:110 Retrieve territoral config
2023-03-31 11:35:27.882 T:17531    info <general>: [Amazon VOD] network.py:162 getURL: https://atv-ps.amazon.com/cdp/usage/v2/GetAppStartupConfig?deviceTypeID=A28RQHJKHM2A2W&deviceID=4e4b20c9f4b44431954ac27da88757df&firmware=1&version=1&format=json
2023-03-31 11:35:28.600 T:17531    info <general>: [Amazon VOD] network.py:245 Download Time: 0.7162195279961452
2023-03-31 11:35:43.482 T:366   warning <general>: CGUIWindowManager - HandleAction - ignoring action 61952, because topmost modal dialog closing animation is running
2023-03-31 11:37:04.715 T:366   warning <general>: CGUIWindowManager - HandleAction - ignoring action 61952, because topmost modal dialog closing animation is running
2023-03-31 11:37:05.099 T:17531    info <general>: [Amazon VOD] network.py:632 Connect to SignIn Page 5 attempts left
2023-03-31 11:37:08.039 T:17531    info <general>: [Amazon VOD] network.py:404 MFA, DCQ or Captcha form
2023-03-31 11:38:19.531 T:366   warning <general>: CGUIWindowManager - HandleAction - ignoring action 61952, because topmost modal dialog closing animation is running
2023-03-31 11:38:50.416 T:414      info <general>: CActiveAESink::OpenSink - initialize sink
2023-03-31 11:38:50.438 T:414      info <general>: PulseAudio: Opened device alsa_output.platform-fef00700.hdmi.hdmi-stereo in pcm mode with Buffersize 150 ms Periodsize 50 ms
2023-03-31 11:38:52.174 T:17531    info <general>: [Amazon VOD] network.py:404 MFA, DCQ or Captcha form

Two questions:

  1. Could it be that it just takes me too long to enter the password and/or the captcha? Is there a timeout? If so, how high is it and can it be changed?
  2. Is there a way to enter the credentials through the commandline instead of the UI?

New error. the plugin has an error on start: 2023-03-30 18:47:15.257 T:1472177024 ERROR: [Amazon VOD] Unable to parse the navigation menu for primevideo .com then nothing happens, only the busy circle 8(

I had the same issue before uninstalling and reinstalling the plugin (the old version first, then the beta). Since I can't log in anymore, I don't know if the issue is gone now or just waiting for me to log in `XD

frudolph77 commented 1 year ago

@the-isz That's really wired, have read about this issue a few times here, but never faced it myself. I don't have a very long password, and I've also 2FA active on my amazon account.
I don't think so that there is an timeout on login.

@cow-crash Do you have installed the lasted beta linked here: https://github.com/Sandmann79/xbmc/issues/674#issuecomment-1487560201

rlees85 commented 1 year ago

@the-isz You can use "Kore" the Android remote for Kodi to enter long passwords very quickly. I can confirm that your issue is not timeouts as I have the same issue and can enter my password in a few seconds.

the-isz commented 1 year ago

@frudolph77, @rlees85: Thank you for your answers!

If it is a known issue, do you have any suggestion what I could try?

You can use "Kore" the Android remote for Kodi to enter long passwords very quickly.

Yeah, I'm using Yatse for that, but it is still quite annoying since my password is really long and cryptic... I know, I brought this on myself `XD

Thanks for the tip anyway!

cow-crash commented 1 year ago

@frudolph77 thx for the hint. With that beta all is okay. fine, i'm happy 8)

dtechniker commented 1 year ago

Unfortunately not for me. I can register and can also select films. Unfortunately, the message always comes up when starting: "http Error"

But thanks for all the effort of developing this app.

petvoigt commented 1 year ago

Well, I had the same issue after activation of the WebAPI and clearing the cache: With version 0.9.6 I found myself in a login cycle of password->TOTP->captcha that never ended. It's worth to mention that I've 2FA activated for my Amazon Prime account.

I found the following workaround: After switching off the WebAPI I could immediately log into my account. After successfull login I could activate WebAPI option again.

Currently, I am on version 0.9.7 beta (Leia and Matrix on RP3 and RP4, respectiveley. The current beta seems to work fine now.

I have no experience, if this login cycle re-appears with a fresh installation of 0.9.7, because 0.9.7 beta currently seems to be installable only, if 0.9.6 has been installed previously - please corrcet me, if I somehow misinterpreted this from this long thread.

And last but not least: Thank you very for providing 0.9.7 beta.

On Tue, 2023-03-28 at 11:44 -0700, the-isz wrote:

I've had the same issue, just install the 0.9.6 from the repository, to resolve the dependencies, and then install the lastest beta from here #674 (comment)

Thank you! With that trick, I was able to install the beta.

Unfortunately, I wasn't able to log in afterwards. I was repeatedly asked to enter my password plus a captcha ("for improved safety, enter your password again") but could never successfully finish.

Unless someone knows this issue, I will reproduce it later this week with advanced logging enabled, but right now, I'm too annoyed from entering my long and cryptic password 10 times...

dtechniker commented 1 year ago

I get the following kodi.log with my error (Beta 4 and Beta 5 ->plugin.video.amazon-test-0.9.7.beta.leia.zip):

2023-04-02 09:19:39.733 T:2148336448 NOTICE: [Amazon VOD] startup.py:39 Requested {'asin': 'B00ZB7PKY8', 'name': 'S\xc3\xb6ldner', 'mode': 'PlayVideo', 'selbitrate': '0', 'trailer': '0', 'adult': '0'} 2023-04-02 09:19:39.999 T:2148336448 NOTICE: [script.module.inputstreamhelper] Widevine update check was made on 2023-03-24 08:08 2023-04-02 09:19:40.017 T:2148336448 NOTICE: [Amazon VOD] network.py:164 postURL: http://127.0.0.1:46697/gpr/https%3A%2F%2Fatv-ps-eu.amazon.de%2Fcdp%2Fcatalog%2FGetPlaybackResources%3Fasin%3DB00ZB7PKY8%26deviceTypeID%3DAOAGZA014O5RE%26firmware%3D1%26deviceID%3D60d72dfd90334d2f84703ec0c228c153%26marketplaceID%3DA1PA6795UKMFR9%26format%3Djson%26version%3D2%26gascEnabled%3Dfalse%26subtitleFormat%3DTTMLv2%26resourceUsage%3DImmediateConsumption%26consumptionType%3DStreaming%26deviceDrmOverride%3DCENC%26deviceStreamingTechnologyOverride%3DDASH%26deviceProtocolOverride%3DHttps%26deviceBitrateAdaptationsOverride%3DCVBR%252CCBR%26audioTrackId%3Dall%26languageFeature%3DMLFv2%26videoMaterialType%3DFeature%26desiredResources%3DPlaybackUrls%2CSubtitleUrls%2CForcedNarratives%2CTransitionTimecodes%26supportedDRMKeyScheme%3DDUAL_KEY 2023-04-02 09:19:40.054 T:2182669120 NOTICE: [Amazon VOD] proxy.py:74 [PS] Requested POST path [u'gpr', u'https%3A%2F%2Fatv-ps-eu.amazon.de%2Fcdp%2Fcatalog%2FGetPlaybackResources%3Fasin%3DB00ZB7PKY8%26deviceTypeID%3DAOAGZA014O5RE%26firmware%3D1%26deviceID%3D60d72dfd90334d2f84703ec0c228c153%26marketplaceID%3DA1PA6795UKMFR9%26format%3Djson%26version%3D2%26gascEnabled%3Dfalse%26subtitleFormat%3DTTMLv2%26resourceUsage%3DImmediateConsumption%26consumptionType%3DStreaming%26deviceDrmOverride%3DCENC%26deviceStreamingTechnologyOverride%3DDASH%26deviceProtocolOverride%3DHttps%26deviceBitrateAdaptationsOverride%3DCVBR%252CCBR%26audioTrackId%3Dall%26languageFeature%3DMLFv2%26videoMaterialType%3DFeature%26desiredResources%3DPlaybackUrls%2CSubtitleUrls%2CForcedNarratives%2CTransitionTimecodes%26supportedDRMKeyScheme%3DDUAL_KEY'] 2023-04-02 09:19:40.056 T:2182669120 ERROR: Traceback (most recent call last): 2023-04-02 09:19:40.056 T:2182669120 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread 2023-04-02 09:19:40.056 T:2182669120 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request 2023-04-02 09:19:40.056 T:2182669120 ERROR: File "/usr/lib/python2.7/SocketServer.py", line 655, in init 2023-04-02 09:19:40.056 T:2182669120 ERROR: File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle 2023-04-02 09:19:40.057 T:2182669120 ERROR: File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request 2023-04-02 09:19:40.057 T:2182669120 ERROR: File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/proxy.py", line 208, in do_POST 2023-04-02 09:19:40.057 T:2182669120 ERROR: self._AlterGPR(unquote(path[1]), headers, data) 2023-04-02 09:19:40.057 T:2182669120 ERROR: File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/proxy.py", line 242, in _AlterGPR 2023-04-02 09:19:40.057 T:2182669120 ERROR: status_code, headers, content = self._ForwardRequest('get', endpoint, headers, data) 2023-04-02 09:19:40.057 T:2182669120 ERROR: File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/proxy.py", line 99, in _ForwardRequest 2023-04-02 09:19:40.057 T:2182669120 ERROR: cookie = MechanizeLogin(preferToken=True) 2023-04-02 09:19:40.057 T:2182669120 ERROR: File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/network.py", line 380, in MechanizeLogin 2023-04-02 09:19:40.057 T:2182669120 ERROR: token = getToken() 2023-04-02 09:19:40.057 T:2182669120 ERROR: File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/network.py", line 790, in getToken 2023-04-02 09:19:40.057 T:2182669120 ERROR: if int(time.time()) > token['expires']: 2023-04-02 09:19:40.057 T:2182669120 ERROR: TypeError: 'bool' object has no attribute 'getitem' 2023-04-02 09:19:40.059 T:2148336448 ERROR: [Amazon VOD] network.py:217 Error reason: ('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',)) (ConnectionError) 2023-04-02 09:19:40.070 T:2148336448 NOTICE: [Amazon VOD] playback.py:25 Playing Dummy Audio 2023-04-02 09:19:40.089 T:3011189248 NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.amazon-test/?asin=B00ZB7PKY8&mode=PlayVideo&adult=0&name=S%C3%B6ldner&trailer=0&selbitrate=0 2023-04-02 09:19:40.091 T:2191061824 NOTICE: Creating InputStream 2023-04-02 09:19:40.091 T:2191061824 NOTICE: Creating Demuxer 2023-04-02 09:19:40.142 T:2191061824 NOTICE: Opening stream: 0 source: 256 2023-04-02 09:19:40.143 T:2191061824 NOTICE: Finding audio codec for: 65536 2023-04-02 09:19:40.143 T:2191061824 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder pcm_s16le 2023-04-02 09:19:40.143 T:2191061824 NOTICE: Creating audio thread 2023-04-02 09:19:40.143 T:2157491008 NOTICE: running thread: CVideoPlayerAudio::Process() 2023-04-02 09:19:40.143 T:2191061824 NOTICE: CVideoPlayer::OnExit() 2023-04-02 09:19:40.143 T:2191061824 NOTICE: VideoPlayer: eof, waiting for queues to empty 2023-04-02 09:19:40.143 T:2191061824 NOTICE: Closing stream player 1 2023-04-02 09:19:40.143 T:2191061824 NOTICE: Waiting for audio thread to exit 2023-04-02 09:19:40.153 T:2157491008 NOTICE: thread end: CVideoPlayerAudio::OnExit() 2023-04-02 09:19:40.153 T:2191061824 NOTICE: Closing audio device 2023-04-02 09:19:40.153 T:2191061824 NOTICE: Deleting audio codec 2023-04-02 09:19:40.215 T:3011189248 NOTICE: CVideoPlayer::CloseFile() 2023-04-02 09:19:40.215 T:3011189248 NOTICE: VideoPlayer: waiting for threads to exit 2023-04-02 09:19:40.215 T:3011189248 NOTICE: VideoPlayer: finished waiting 2023-04-02 09:19:40.215 T:3011189248 NOTICE: CVideoPlayer::CloseFile() 2023-04-02 09:19:40.215 T:3011189248 NOTICE: VideoPlayer: waiting for threads to exit 2023-04-02 09:19:40.215 T:3011189248 NOTICE: VideoPlayer: finished waiting 2023-04-02 09:19:54.054 T:2148336448 WARNING: CPythonInvoker(31, /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 2023-04-02 09:19:57.343 T:2836792128 ERROR: GetDirectory - Error getting

the-isz commented 1 year ago

After going back to version 0.9.6, I just tried logging in both with Web API enabled and without: None of it works.

So probably my formerly reported login issues have nothing to do with the beta version :(

the-isz commented 1 year ago

I was about to write that I'm confused why this gets closed when I still can't use the plugin at all but then I thought I should give version 0.9.7 a spin first.

Lo and behold, everything works! Great work by @Sandmann79 and all others who helped getting this running again. You're the best!