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

Unable to find the navigation menu for primevideo.com #674

Closed xaviron closed 1 year ago

xaviron commented 1 year ago

Unable to find the navigation menu for primevideo.com.

It seems the structure of Amazon has changed again. Using 0.9.6+Matrix version

Both Nexus and Matrix gives same error

Thank you!

Addon used

Account type

System Setup (please provide the following information):

Upload Logs

Describe the bug

Askaron13 commented 1 year ago

I have the same issue from today 28.02.2023.

Raspberry pi 4 LibreELEC 10.0.4 Kodi 19.5.0. Matrix Amazon VOD addon 0.9.6+Matrix1

Already full reinstall of Addon, log in whichout any issue, during launching issue : Unable to find the navigation menu for primevideo.com.

MadEarl commented 1 year ago

Same here on Leia, using the Web API (standard had stopped working a while ago)

Air-w0lf commented 1 year ago

Can confirm the same issue.

cappa758 commented 1 year ago

Confirm same issue with same hardware and software version. Might be caused by some changes in prime video.com html?

juic3pow3rs commented 1 year ago

I have the same issue from today 28.02.2023.

Raspberry pi 4 LibreELEC 10.0.4 Kodi 19.5.0. Matrix Amazon VOD addon 0.9.6+Matrix1

Already full reinstall of Addon, log in whichout any issue, during launching issue : Unable to find the navigation menu for primevideo.com.

Got the exact same specs and also have this issue.

By the looks of the Amazon prime video Website I think there are indeed some slight changes.

Grruhn commented 1 year ago

Hi, I have the same issue.

cpassuel commented 1 year ago

Same here with LibreELEC 9.2.8

robustini commented 1 year ago

Same issue with Coreelec 19.

LiquidSky commented 1 year ago

Same issue.

theDyingMountain commented 1 year ago

Same here.

EdgarWollust commented 1 year ago

Same here.

Raspi 4
Kodi 19.5.0. Matrix
Amazon VOD addon 0.9.6+Matrix1
DaSpors commented 1 year ago

Same setup, same error.

nroets1 commented 1 year ago

Same issue on Kodi 20.0. Both Android MiBox and Ubuntu 21.04.

MauriceW67 commented 1 year ago

@Sandmann79 @Varstahl Any chance you could take a look and try to find a fix? Would be great to get the addon working again!

ChrisTG742 commented 1 year ago

Same here. AFAIK Amazon have changed something on the website, so that the parser does not find the menu-entries any more. Maybe someone else could dig that out and make a PR?

cpassuel commented 1 year ago

The log message is

2023-03-04 19:08:30.741 T:2522469184  NOTICE: [Amazon VOD] Version: 0.9.6
2023-03-04 19:08:30.742 T:2522469184  NOTICE: [Amazon VOD] Unicode filename support: False
2023-03-04 19:08:30.743 T:2522469184  NOTICE: [Amazon VOD] Locale: en-us / Language: fr
2023-03-04 19:08:32.225 T:2522469184   ERROR: [Amazon VOD] Watchlist link not found
2023-03-04 19:08:32.226 T:2522469184   ERROR: [Amazon VOD] Unable to parse the navigation menu for primevideo.com

The navigation is parsed in resources\lib\web_api.py script and in BuildRoot function. It seems that pv-nav-mystuff is expected in an URL but now it is pv-nav-my-stuff in Amazon Prime

cpassuel commented 1 year ago

The issue is between the lines 436 to 447 of web_api.py script as none of the 3 try returns a result.

I'm not sure but for the first try instead of parsing home['yourAccount']['links'], we should parse the more complex structure returned by home[u'nav']['navigationNodes'] to find the url key. The parsing should be something like below (I'm a noob at Python so don't blame me for this ugly code)

for s in home[u'nav']['navigationNodes']:
    for sn in s['subMenu']:
        if not sn == {}:
            for z in sn['subNodes']:
                print(z['url'])
Forlorn-Hope commented 1 year ago

I have the same issue as above. Issue is caused by the new user interface/browser that Amazon has rolled out as of late for the Prime Video section. Happy Hunting!

cpassuel commented 1 year ago

I've done some tests and was able to get the search function back again. watchlist need more works

In flie resources\lib\web_api.py at line 436 comment

            watchlist = next((x for x in home['yourAccount']['links'] if '/watchlist/' in x['href']), None)
            self._catalog['root']['Watchlist'] = {'title': watchlist['text'], 'lazyLoadURL': FQify(watchlist['href'])}

and add after this ugly piece of code

            for subMenu in home[u'nav']['navigationNodes']:
                for sn in subMenu['subMenu']:
                    if not sn == {}:
                        for node in sn['subNodes']:
                            if '/watchlist/' in node['url']:
                                self._catalog['root']['Watchlist'] = {'title': node['label'], 'lazyLoadURL': FQify(node['url'])}

Comment the return False at line 488

            Log('Unable to parse the navigation menu for primevideo.com', Log.ERROR)
            return False

Comment at line 494

                sfa = home['searchBar']['searchFormAction']

and add

                sfa = home['nav']['searchBar']['submitSearchDestructuredEndpoint']

and finally comment at line 502

                    'title': self._BeautifyText(home['searchBar']['searchFormPlaceholder']),

then add

                    'title': self._BeautifyText(home[u'nav']['searchBar'][u'searchBarPlaceholderLabel']),

Feel free to investigate on watchlist issue, it seems to be around the line 1400 but since it a very long function, we may have to change other things

krokodylowy commented 1 year ago

Hi Please create pull request.

Sandmann79 commented 1 year ago

Here is the first dirty fix for the new changes at amazons website. It's should everthing work except the main menu categories, there's no paginatin for the moment. This update includes the changes from @cpassuel, but is absolutely untested for PrimeVideo users. To avoid errors it's important to clear both caches at addon settings.

If you encounter any error, please provide the region where your account is based on, kodi.log and the related json file. You can enable Json Logging at addon setting > miscellaneous.

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

rocktobe commented 1 year ago

Hello,

I guess we need to uninstall the old plugin(addon)? Because I dont understand why you talk about "To avoid errors it's important to clear both caches at addon settings"

Thanks for the new plugin anyway!

Paul

Envoyé depuis mon appareil Galaxy

-------- Message d'origine -------- De : Sandmann79 @.> Date : 6/03/23 06:35 (GMT+01:00) À : Sandmann79/xbmc @.> Cc : Subscribed @.***> Objet : Re: [Sandmann79/xbmc] Unable to find the navigation menu for primevideo.com (Issue #674)

Here is the first dirty fix for the new changes at amazons website. It's should everthing work except the main menu categories, there's no paginatin for the moment. This update includes the changes from @cpassuelhttps://github.com/cpassuel, but is absolutely untested for PrimeVideo users. To avoid errors it's important to clear both caches at addon settings.

If you encounter any error, please provide the region where your account is based on, kodi.log and the related json file. You can enable Json Logging at addon setting > miscellaneous.

plugin.video.amazon-test-0.9.7~beta.ziphttps://github.com/Sandmann79/xbmc/files/10894684/plugin.video.amazon-test-0.9.7.beta.zip

— Reply to this email directly, view it on GitHubhttps://github.com/Sandmann79/xbmc/issues/674#issuecomment-1455485306, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXOKSUAP7CRWD34AAZAHGJDW2VZTPANCNFSM6AAAAAAVK2MJS4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Varstahl commented 1 year ago

@Sandmann79 @Varstahl Any chance you could take a look and try to find a fix? Would be great to get the addon working again!

Sorry for the late reply. I gave a look but can't reproduce. Possibly a canary release that'll take another week to reach me, idk.

image

Just took this screenshot a few seeconds ago.

I guess we need to uninstall the old plugin(addon)? Because I dont understand why you talk about

No, just click on the item in the settings:

image

rocktobe commented 1 year ago

Hello again,

While trying to install the plugin 'plugin.video.amazon-test-0.9.7~beta.zip", it says : "the dependency on xbmc.python version 3.0.0 could not be satisfied". Any idea?

Thanks in advance.

Envoyé depuis mon appareil Galaxy

-------- Message d'origine -------- De : Sandmann79 @.> Date : 6/03/23 06:35 (GMT+01:00) À : Sandmann79/xbmc @.> Cc : Subscribed @.***> Objet : Re: [Sandmann79/xbmc] Unable to find the navigation menu for primevideo.com (Issue #674)

Here is the first dirty fix for the new changes at amazons website. It's should everthing work except the main menu categories, there's no paginatin for the moment. This update includes the changes from @cpassuelhttps://github.com/cpassuel, but is absolutely untested for PrimeVideo users. To avoid errors it's important to clear both caches at addon settings.

If you encounter any error, please provide the region where your account is based on, kodi.log and the related json file. You can enable Json Logging at addon setting > miscellaneous.

plugin.video.amazon-test-0.9.7~beta.ziphttps://github.com/Sandmann79/xbmc/files/10894684/plugin.video.amazon-test-0.9.7.beta.zip

— Reply to this email directly, view it on GitHubhttps://github.com/Sandmann79/xbmc/issues/674#issuecomment-1455485306, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXOKSUAP7CRWD34AAZAHGJDW2VZTPANCNFSM6AAAAAAVK2MJS4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

cpassuel commented 1 year ago

@rocktobe I assume you have libreelec 9.2.8. in this case, you need to downgrade the file addon.xml to the one from the previous version:

You can now install it.

EDIT: I uploaded the archive with the old addon.xml plugin.video.amazon-test-0.9.7.beta.with.old.addon.zip

MauriceW67 commented 1 year ago

@Sandmann79 I tried you alpha 0.9.7 version.

It allows me to play videos again, but only up to Full HD. 4K videos are no longer available.

nocreativi commented 1 year ago

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

It works (kodi-rpi 20.0-11, region Germany). Thank you, @Sandmann79 and @cpassuel!

chewiiie commented 1 year ago

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

Still getting the Unknown error after MFA authentication here (kodi 19.5 on win10, login info and cache cleared in the extension settings)

27hectormanuel commented 1 year ago

After the update now my audio goes to Arabic automatically on Amazon Originals with multiple languages

On Mon, Mar 6, 2023, 4:28 PM chewiiie @.***> wrote:

plugin.video.amazon-test-0.9.7~beta.zip https://github.com/Sandmann79/xbmc/files/10894684/plugin.video.amazon-test-0.9.7.beta.zip

Still getting the Unknown error after MFA authentication here (kodi 19.5 on win10)

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

mlc42 commented 1 year ago

@rocktobe I assume you have libreelec 9.2.8. in this case, you need to downgrade the file addon.xml to the one from the previous version:

* Download the current version of the code from github, extract it.

* Download v 0.9.7 and extract it

* Replace addon.xml in the 0.9.7 version from the one in xbmc-master\plugin.video.amazon-test

* Recreate the v 0.9.7 archive (keepin plugin.video.amazon-test folder)

You can now install it.

EDIT: I uploaded the archive with the old addon.xml plugin.video.amazon-test-0.9.7.beta.with.old.addon.zip

addon failed on libreelec 9.2.8 kodi 18.9

2023-03-06 23:14:01.659 T:1265628032 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

GG-76 commented 1 year ago

I tried installing beta version 0.9.7 on Kodi 20 , Android with PrimeVideo and everything seems to work except My Stuff folder (watchlist) which is still unavailable

rocktobe commented 1 year ago

Hello,

I tried the procedure by installing the plugin "plugin.video.amazon-test-0.9.7.beta.with.old.addon.zip" but still having an issue : "amazon vod error check the log for more information"

Im desperate...

Thanks for your support guys

Envoyé depuis mon appareil Galaxy

-------- Message d'origine -------- De : mlc42 @.> Date : 6/03/23 23:20 (GMT+01:00) À : Sandmann79/xbmc @.> Cc : rocktobe @.>, Mention @.> Objet : Re: [Sandmann79/xbmc] Unable to find the navigation menu for primevideo.com (Issue #674)

@rocktobehttps://github.com/rocktobe I assume you have libreelec 9.2.8. in this case, you need to downgrade the file addon.xml to the one from the previous version:

You can now install it.

EDIT: I uploaded the archive with the old addon.xml plugin.video.amazon-test-0.9.7.beta.with.old.addon.ziphttps://github.com/Sandmann79/xbmc/files/10902267/plugin.video.amazon-test-0.9.7.beta.with.old.addon.zip

addon failed on libreelec 9.2.8 kodi 18.9

2023-03-06 23:14:01.659 T:1265628032 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

— Reply to this email directly, view it on GitHubhttps://github.com/Sandmann79/xbmc/issues/674#issuecomment-1457099557, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXOKSUEPMQVSFQWMSDQBS2DW2ZPJHANCNFSM6AAAAAAVK2MJS4. You are receiving this because you were mentioned.Message ID: @.***>

27hectormanuel commented 1 year ago

Does 2FA break login with the update?

Sandmann79 commented 1 year ago

@rocktobe & @mlc42 my bad - there is a wrong import statement. Will be fixed in the next beta

@MauriceW67 there was a little change at the code, regarding to this. Have to check...

@chewiiie please open a new issue and provide all nessasery logs as described in the issue template

@27hectormanuel no, the update has no effect on the login process

cpassuel commented 1 year ago

Hello, I tried the procedure by installing the plugin "plugin.video.amazon-test-0.9.7.beta.with.old.addon.zip" but still having an issue : "amazon vod error check the log for more information" Im desperate... Thanks for your support guys Envoyé depuis mon appareil Galaxy -------- Message d'origine -------- De : mlc42 @.> Date : 6/03/23 23:20 (GMT+01:00) À : Sandmann79/xbmc @.> Cc : rocktobe @.>, Mention @.> Objet : Re: [Sandmann79/xbmc] Unable to find the navigation menu for primevideo.com (Issue #674) @rocktobehttps://github.com/rocktobe I assume you have libreelec 9.2.8. in this case, you need to downgrade the file addon.xml to the one from the previous version: Download the current version of the code from github, extract it. Download v 0.9.7 and extract it Replace addon.xml in the 0.9.7 version from the one in xbmc-master\plugin.video.amazon-test Recreate the v 0.9.7 archive (keepin plugin.video.amazon-test folder) You can now install it. EDIT: I uploaded the archive with the old addon.xml plugin.video.amazon-test-0.9.7.beta.with.old.addon.ziphttps://github.com/Sandmann79/xbmc/files/10902267/plugin.video.amazon-test-0.9.7.beta.with.old.addon.zip addon failed on libreelec 9.2.8 kodi 18.9 2023-03-06 23:14:01.659 T:1265628032 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ImportError'> Error Contents: cannot import name urlparse — Reply to this email directly, view it on GitHub<#674 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXOKSUEPMQVSFQWMSDQBS2DW2ZPJHANCNFSM6AAAAAAVK2MJS4. You are receiving this because you were mentioned.Message ID: @.***>

I have the issue too on a test install of LibreElec 9.2.8 and v0.9.7. Logging is ok with old addon.xml file but nothing is displayed. I have to make more test and extract the json.

For now on my main libreelec install, I keep the version 0.9.6 with my changes https://github.com/Sandmann79/xbmc/issues/674#issuecomment-1455049830 so I can at least have the search

gst-kodi commented 1 year ago

hello this should work for Kodi Leia. I changed/edit the addon.xml and web_api.py. In web_api.py at line 22-25

try:
    from urllib.parse import quote_plus, unquote_plus
except ImportError:
    from urllib import quote_plus, unquote_plus

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

rocktobe commented 1 year ago

hi guys,

By installing the new addon "plugin.video.amazon-test-0.9.7.beta.leia.ziphttps://github.com/Sandmann79/xbmc/files/10912899/plugin.video.amazon-test-0.9.7.beta.leia.zip" the situation is even worse. While trying to log on impossible to add user and password while clicking on connection, add user... well the system is looping dont do anything... Waiting for a new update ! Let the force be with us ... soon or later an expert will find a solution 🙂 cheers


De : gst-kodi @.> Envoyé : mardi 7 mars 2023 19:49 À : Sandmann79/xbmc @.> Cc : rocktobe @.>; Mention @.> Objet : Re: [Sandmann79/xbmc] Unable to find the navigation menu for primevideo.com (Issue #674)

hello this should work for Kodi Leia. I changed/edit the addon.xml and web_api.py. In web_api.py at line 22-25

try: from urllib.parse import quote_plus, unquote_plus except ImportError: from urllib import quote_plus, unquote_plus

plugin.video.amazon-test-0.9.7.beta.leia.ziphttps://github.com/Sandmann79/xbmc/files/10912899/plugin.video.amazon-test-0.9.7.beta.leia.zip

— Reply to this email directly, view it on GitHubhttps://github.com/Sandmann79/xbmc/issues/674#issuecomment-1458660882, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXOKSUAWXIC23Z5RA4LVV5LW257LJANCNFSM6AAAAAAVK2MJS4. You are receiving this because you were mentioned.Message ID: @.***>

gst-kodi commented 1 year ago

@rocktobe I have a German amazon.de account and use Kodi 18.9 Leia. this changes works for me. As @Sandmann79 mentions "If you encounter any error, please provide the region where your account is based on, kodi.log and the related json file. You can enable Json Logging at addon setting > miscellaneous." If you provide this information someone can help you too. cheers

Forlorn-Hope commented 1 year ago

Update: I was having issues trying to get the beta to install properly. I did the addon.xml substitution a few times and still got errors. So I said, just give it a day and see what happens. Lo and behold, the Liberlec team released an update to version 11, that contains Kodi 20. After waiting patiently in line to download, backing up, and updating, removing any failed attempts.... I re-downloaded the beta, cleared the cache, rebooted the box, and in my best David Suchet as Poirot....Parfaitement! I will give it a workout over the next few days. Thank you and the team for all the labor you put into this, I appreciate it.

27hectormanuel commented 1 year ago

hi guys, By installing the new addon "plugin.video.amazon-test-0.9.7.beta.leia.ziphttps://github.com/Sandmann79/xbmc/files/10912899/plugin.video.amazon-test-0.9.7.beta.leia.zip" the situation is even worse. While trying to log on impossible to add user and password while clicking on connection, add user... well the system is looping dont do anything... Waiting for a new update ! Let the force be with us ... soon or later an expert will find a solution 🙂 cheers

Sounds like the 2FA problem not related to the update. I had a similar issue as noted above.

Sandmann79 commented 1 year ago

@MauriceW67 checked 4K playback on Jack Ryan and Peripheral and it works without any issue: Screenshot_2023-03-08-06-28-27-163_org xbmc kodi

MauriceW67 commented 1 year ago

@Sandmann79 Thanks for checking 4K.

The thing is, I was using a "workaround" to access 4K content. My account is a PV one from The Netherlands. For PV accounts 4K is not working. See this issue: https://github.com/Sandmann79/xbmc/issues/632

But I found out that if I do an initial login in the addon while the connection is forced to the Amazon UK TLD, an Android TV device (Shield) is registered in my account profile on the UK Prime Video site. The profile is separate from the profile on the PrimeVideo.com site. After doing this, I found out I can play 4K content, provided it is included with Prime Video in both countries (UK and NL). I tested this with the Jack Reacher and the LOTR TV shows.

However, that "trick" no longer works at the moment, so I thought maybe it has to do with the changes.

cpassuel commented 1 year ago

I installed the [plugin.video.amazon-test-0.9.7~beta.zip](https://github.com/Sandmann79/xbmc/files/10894684/plugin.video.amazon-test-0.9.7.beta.zip with the previous addon.xml file and I had an issue to retrieve the watchlist. Then I overwrote the file web_api.py with the one in plugin.video.amazon-test-0.9.7.beta.leia.zip and now it seems ok

mlc42 commented 1 year ago

hello this should work for Kodi Leia. I changed/edit the addon.xml and web_api.py. In web_api.py at line 22-25

try:
    from urllib.parse import quote_plus, unquote_plus
except ImportError:
    from urllib import quote_plus, unquote_plus

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

with that change addon works again many thanks

MauriceW67 commented 1 year ago

@Sandmann79 I owe you an apology. I had been experimenting with the addon settings because 4K HDR10+ (ex. The Boys season 3) is playing choppy on both my Shield and Philips Android TV. So I temporarily disabled 4K in the addon. I've turned it back on and it works just fine. Only for SDR or Dolby Vision 4K content though. HDR content is still very choppy. Not sure where the problem lies with that. Perhaps InputStream Adaptive?

Ronny-nerd commented 1 year ago

@Sandmann79Ich schulde dir eine Entschuldigung. Ich habe mit den Addon-Einstellungen experimentiert, weil 4K HDR10+ (z. B. The Boys Staffel 3) sowohl auf meinem Shield als auch auf Philips Android TV abgehackt abgespielt wird. Also habe ich 4K im Addon vorübergehend deaktiviert. Ich habe es wieder eingeschaltet und es funktioniert einwandfrei. Allerdings nur für SDR- oder Dolby Vision 4K-Inhalte. HDR-Inhalte sind immer noch sehr abgehackt. Keine Ahnung, wo das Problem dabei liegt. Vielleicht InputStream Adaptive?

Have the same problem with movies/series in 4k + HDR 10+.

Hardware: Nvidia Shield TV Pro 2019 LG OLED55B7D No AVR and no Soundbar

Try it like this for now...maybe you can play it without judder in 4K = enabled HDR 10+ = disabled

MauriceW67 commented 1 year ago

@Ronny-nerd Good to know that I am not the only one with issues playing 4K HDR10+ content.

WIth 4K enabled and HDR10+ disabled, there is no issue. But shows that don't have Dolby Vision are then played in 4K SDR with the h.264 codec.

@Sandmann79 Where do you think the HDR10+ issue comes from? Is it something in the addon, in InputStream Adaptive or in the Kodi core?

Sandmann79 commented 1 year ago

Attached are the next betas for Leia / Matrix and above for testing. Changes:

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

Please report only bugs related to this issue here. For all other bugs create a new one or post in an existing one. As before, please provide logs for bugs.

GG-76 commented 1 year ago

@Sandmann79 Hi, I installed this Matrix beta on Kodi 20 and I keep getting an error when I want to view My stuff (i have PrimeVideo)

cpassuel commented 1 year ago

plugin.video.amazon-test-0.9.7~beta+leia.zip installed with success on my main install (I just cleared both caches). Thanks