Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 4 tasks
xaviron opened this issue Feb 28, 2023 · 130 comments
Closed
1 of 4 tasks

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

xaviron opened this issue Feb 28, 2023 · 130 comments

Comments

@xaviron
Copy link

xaviron commented Feb 28, 2023

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

  • Amazon VOD (plugin.video.amazon-test)
  • Browser Launcher (plugin.program.browser.launcher)
  • Addon version:

Account type

  • primevideo.com
  • amazon.(com/co.uk/de/jp)

System Setup (please provide the following information):

  • Hardware:
  • OS version:
  • Kodi version number:

Upload Logs

Describe the bug

@Askaron13
Copy link

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
Copy link

MadEarl commented Feb 28, 2023

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

@Air-w0lf
Copy link

Air-w0lf commented Mar 1, 2023

Can confirm the same issue.

@cappa758
Copy link

cappa758 commented Mar 1, 2023

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

@juic3pow3rs
Copy link

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
Copy link

Grruhn commented Mar 2, 2023

Hi,
I have the same issue.

@cpassuel
Copy link

cpassuel commented Mar 2, 2023

Same here with LibreELEC 9.2.8

@robustini
Copy link

Same issue with Coreelec 19.

@LiquidSky
Copy link

Same issue.

  • ubuntu 22.04
  • Kodi 19.5.0. Matrix
  • Amazon VOD addon 0.9.6+Matrix1

@theDyingMountain
Copy link

Same here.

  • Raspi 4
  • Kodi 19.5.0. Matrix
  • Amazon VOD addon 0.9.6+Matrix1

@EdgarWollust
Copy link

Same here.

Raspi 4
Kodi 19.5.0. Matrix
Amazon VOD addon 0.9.6+Matrix1

@DaSpors
Copy link

DaSpors commented Mar 3, 2023

Same setup, same error.

@nroets1
Copy link

nroets1 commented Mar 3, 2023

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

@MauriceW67
Copy link

@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
Copy link

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
Copy link

cpassuel commented Mar 4, 2023

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
Copy link

cpassuel commented Mar 4, 2023

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
Copy link

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
Copy link

cpassuel commented Mar 5, 2023

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
Copy link

Hi
Please create pull request.

@Sandmann79
Copy link
Owner

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
Copy link

rocktobe commented Mar 6, 2023 via email

@Varstahl
Copy link
Collaborator

Varstahl commented Mar 6, 2023

@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
Copy link

rocktobe commented Mar 6, 2023 via email

@cpassuel
Copy link

cpassuel commented Mar 6, 2023

@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

@MauriceW67
Copy link

@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
Copy link

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

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

@chewiiie
Copy link

chewiiie commented Mar 6, 2023

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
Copy link

27hectormanuel commented Mar 6, 2023 via email

@mlc42
Copy link

mlc42 commented Mar 6, 2023

@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<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: cannot import name urlparse

@Sandmann79
Copy link
Owner

@dtechniker there is no playback attempt visible from the logs and please upload debug logs for playback issues.

@Ronny-nerd please try the following change to web_api.py at line 1385 and clear the catalog cache afterwards:
var = 'collection' if len(cnt.get('collections', [])) > 0 else 'container'

@Ronny-nerd
Copy link

Thanks Sandmann79 ...for the new code in line 1385 in the web_api.py ...so there are entries in these main menu items again.

@dtechniker
Copy link

Where can I find the correct log file? I uploaded all the logs from the plugin.video.amazon-test.zip and only one contained a (01_KODI.log) mention of the app.

Screenshot is probably useless, there is only the error message: HTTP Error

Just like with MS Windows "an error has occurred".... ;-)

@Sandmann79
Copy link
Owner

The logs are the correct ones only the time of creation is wrong. We need the logs after the playback attempt, not before. And as written above, debug logging must be enabled in the Kodi settings.

@dtechniker
Copy link

@yrp888
Copy link

yrp888 commented Apr 16, 2023

Been away but today I installed 0.9.7 beta 6 matrix on the two NUC8 and RPi4 straight over the top of beta5. All Kodis logged in successfully, play shows and display subtitles/CC.

The old web-based auth session is better for me as I was having problems logging into the RPi4 box when I tried downgrading to beta3. I did not have a keyboard available (I was travelling) so I had to enter the credentials using my remote control. As my password is 14char random ASCII, by the time I managed to enter the verification code it must have timed out. The beta6 login solves that (but I was using a keyboard this time).

THANK YOU @Sandmann79 !!!

@gdinit
Copy link

gdinit commented Apr 16, 2023

With this beta (hopefully the last one before the final) the login should be fixed, because for now the old web based login is used again. This means that 4K is no longer possible under Android, even if the setting is set.

Anyone who has logged in with Beta4 or Beta5 and receives an error message at startup should log in again.

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

This has solved my problem - thank you!

@nroets1
Copy link

nroets1 commented Apr 16, 2023

Just to inform. I have updated from beta3 to beta6. All working on Android MiBox S and also on Linux Ubuntu and openSuse Tumbleweed. Thanks for a great add-on.

@Vichman67
Copy link

New news!!!

I can confirm that the following beta versions solved the problem on my systems:

  • 0.97~beta6+leia under Raspberry Pi 2b, LibreELEC 9.2 and Kodi 18.9 (Leia).
  • 0.97~beta6+matrix under Ubuntu 22.04 notepad and Kodi 20.1 (Nexus).

It seems those beta versions are fully functional on those systems, so I'll wait for the new stable version of the add-on.

Thanks a million for all your hard work!

@polocatfan
Copy link

polocatfan commented Apr 20, 2023

@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

same issue. tried every single zip. I'm on Nexus. It spits out a dependency error no matter what I try...

@Sandmann79
Copy link
Owner

So there are the next beta round to test:
plugin.video.amazon-test-0.9.7~beta7+matrix.1.zip
plugin.video.amazon-test-0.9.7~beta7+leia.zip

Changelog to beta6:

  • option to register device for 4k playback on Android at settings > connection. Please enable it only if you need 4k playback, you have to solve at least 3 captchas and it may fail.
  • added support for animated captchas
  • added support for anti robot check at sign in page
  • editing watchlist fixed

As always, if you encounter any error upload logs

@Vichman67
Copy link

Vichman67 commented Apr 22, 2023

Tests on my systems proceeded with success:

  • 0.97~beta7+leia under Raspberry Pi 2b, LibreELEC 9.2 and Kodi 18.9 (Leia).
  • 0.97~beta7+matrix under Ubuntu 22.04 notepad and Kodi 20.1 (Nexus).

But I've had no chance to check if the issues in the changelog where solved cause I didn't experience such problems.

Thanks a million!

@dtechniker
Copy link

Big thanks to Sandmann79. On Raspi 4 with LibreELEC 9.2 and Kodi 18.9 (Leia).

I push the controller and i watch Amazon.

@MauriceW67
Copy link

MauriceW67 commented Apr 22, 2023

@Sandmann79 In beta 7, will 4K still only work on Amazon TLDs or should it also work on the PrimeVide.com TLD now?

See here: #632

@Sandmann79
Copy link
Owner

@MauriceW67 unfortunately, I can not test if 4K works for PV users. However, in my tests with a PV account, the device was registered with Amazon. This had already worked in the older versions, only the generated web cookie for catalog display was invalid. This is now valid again (until Amazon changes something). So just try it and backup/rename the accounts.lst from the config folder before.

@MauriceW67
Copy link

@Sandmann79 Just did a quick test with beta 7 and I'm happy to report that 4K playback now works with my Dutch PV account, so thanks for that. I guess that other issue that I mentioned can be closed now 😄

Also, I did not have to solve any captcha's when logging in. Maybe it helps if you have 2FA enabled on your Amazon account? All I needed to do after typing in my password was to input the OTP passcode from my authenticator app.

@Varstahl
Copy link
Collaborator

@Sandmann79 Just did a quick test with beta 7 and I'm happy to report that 4K playback now works with my Dutch PV account, so thanks for that. I guess that other issue that I mentioned can be closed now 😄

That's great news, thanks for reporting 🎉

Also, I did not have to solve any captcha's when logging in. Maybe it helps if you have 2FA enabled on your Amazon account? All I needed to do after typing in my password was to input the OTP passcode from my authenticator app.

This is highly dependant on a number of factors. Sometimes it doesn't ask you anything, sometimes it really doesn't want you through.

@Qubits01
Copy link

Qubits01 commented Apr 22, 2023

Hi,

I'm running Kodi 19.5 with osmc on a raspberry pi3 using latest beta7 matrix.1 build.

When starting a stream from prime, osmc crashes (sad smiley face screen)

here's the log:
log

All seems to be working until the playback is initialized. That's the complete log. next log entries are from kodi reinitialization.

@Varstahl
Copy link
Collaborator

All seems to be working until the playback is initialized. That's the complete log. next log entries are from kodi reinitialization.

That's a cut of the logs and therefore not complete. Regardless as soon as it leaves the addon, the fault relies on the system/hardware.

As I said many times in the past to the point of sounding like a broken record, if you have problems with OSMC try LibreElec, if you can.

@pmsobrado
Copy link

* option to register device for 4k playback on Android at settings > connection. Please enable it only if you need 4k playback, you have to solve at least 3 captchas and it may fail.

So, my spanish account can finally play 4K/HDR. But for some reason, the video is stuttering a lot. I've tried different refresh rates, although Kodi auto changes it according to the content (I've tried playing "The Boys" and the resolution auto changes to 2160p/24. The stuttering does not happen on other addons using Input stream, like Netflix or Disney+ (on Kodi, I mean). It also does not happen on the official Prime Video app.

Not sure if it's because of the addon or not. Does anyone else have the same problem? My device is a Fire TV 4K Max. I've also tried changing the playback setting from Input Stream to Android, same problem.

Thanks!

@thackel
Copy link

thackel commented Apr 22, 2023

Until the new beta-7 it was not possible to browse the watchlist or any content.
With plugin.video.amazon-test-0.9.7~beta7+matrix.1.zip this is again working. Thanks!

But starting any video playback results in a segfault of kodi.

I attached the crash log: kodi_crashlog-20230422_203438.log

@Qubits01
Copy link

As I said many times in the past to the point of sounding like a broken record, if you have problems with OSMC try LibreElec, if you can.

Thanks, I can confirm it works with the latest version of LibreElec. The install from osmc was clean and fresh, too. So a warning to everyone else: With the latest image for raspi3 (Jan 2023) osmc will not work.

@Jkraje
Copy link

Jkraje commented Apr 25, 2023

OS: LibreELEC 11.0.1 // Kodi 20.1 // Region: Germany // beta7+matrix.1.zip

Can confirm working on Kodi Nexus like a charm.

Found out something I couldn't find in here:

If I put something on my watchlist using my android-smartphone or the notebook, it might not work to start it trough the watchlist on Kodi.

Example: I added "LOL-Last One Laughin (German)" on my android-smartphone to my watchlist. Of 4 Seasons only the first one was possible to start with Kodi and it only startet in 480p. Season 2-4 only created execptions.
After I added "LOL" to my watchlist using Kodi, everything worked fine. Even the solution was 1080p.

Tanks very much for your work!

@m-stoev
Copy link

m-stoev commented Nov 2, 2023

Sorry to say it, but I have same problem with v 1.0.4 and Kodi 19.5.
PS - I using it on CoreElec 19.5, but when change Data Source -> Data Source to Android it start works.

@Sandmann79
Copy link
Owner

@m-stoev please do not post on closed issues.
Create a new issue with a meaningful log if you are using the current stable version 1.0.0 (1.0.4 is the repo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests