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

Errors while browsing the catalog / Unable to find the navigation menu #721

Closed
2 of 4 tasks
neunzehnachtneun opened this issue Jan 18, 2024 · 19 comments
Closed
2 of 4 tasks
Labels
broken Functionality lost with amz update web_api

Comments

@neunzehnachtneun
Copy link

Addon used

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

Account type

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

System Setup (please provide the following information):

  • Hardware: Raspberry Pi 3 Model B Rev 1.2
  • OS version: LibreElec 11.0.4
  • Kodi version number: 20.2

Upload Logs

https://paste.libreelec.tv/modern-muskox.log

Describe the bug

Browsing the catalog, throws an error. See logs.

2024-01-18 21:20:27.560 T:807     error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'KeyError'>
                                                   Error Contents: 'B09M1DYV7P'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.amazon-test/default.py", line 9, in <module>
                                                       EntryPoint(argv)
                                                     File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 67, in EntryPoint
                                                       _g.pv.Route(verb, path)
                                                     File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 184, in Route
                                                       elif 'browse' == verb: self._g.pv.Browse(path)
                                                                              ^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 458, in Browse
                                                       node, breadcrumb = self._TraverseCatalog(path)
                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 154, in _TraverseCatalog
                                                       self._LazyLoad(node[nodeName], pathList[0:1 + i])
                                                     File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 1383, in _LazyLoad
                                                       bUpdatedVideoData |= AddSeason(breadcrumb[-1], o, bCacheRefresh, iu)
                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 840, in AddSeason
                                                       seasonGTI = self._videodata['urn2gti'][urn]
                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
                                                   KeyError: 'B09M1DYV7P'
                                                   -->End of Python script error report<--
                                                   
2024-01-18 21:20:28.655 T:806     error <general>: GetDirectory - Error getting plugin://plugin.video.amazon-test/pv/browse/root/coll1_Startseite/%5BCOLOR+FF00A8E0%5DPrime%5B%2FCOLOR%5D+Comedy-Serien/amzn1.dv.gti.1cebc507-89fb-4194-9899-482f8650114b
2024-01-18 21:20:28.684 T:700     error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.amazon-test/pv/browse/root/coll1_Startseite/%5BCOLOR+FF00A8E0%5DPrime%5B%2FCOLOR%5D+Comedy-Serien/amzn1.dv.gti.1cebc507-89fb-4194-9899-482f8650114b) failed
@Forlorn-Hope
Copy link

I also have the same issue. Last time it was because Amazon made changes to the VOD interface. I have cleared both the video and catalog caches to no avail. When I choose any options in My Stuff > Watchlist, I get an 'Amazon VOD error. Please look at the log' message.

System Setup (please provide the following information):

Hardware: Intel NUC i5-8259U
OS version: LibreElec 11.0.4
Kodi version number: 20.2

Account type
amazon.(com/co.uk/de/jp)

Here is the log file :

https://paste.kodi.tv/oropekakik

I also generated the log file from the plugin itself. It has been attached:
logfiles_20240118-191411.zip

If there is anything else I can provide, please let me know.

@Sandmann79
Copy link
Owner

Amazon changed the layout of the Detail page. This breaks the display of video entries.
Hopefully there won't be any more changes.
Working on a fix...

@Sandmann79 Sandmann79 added broken Functionality lost with amz update primevideo and removed primevideo labels Jan 19, 2024
@cow-crash
Copy link

also don't work here...

@DiGilli
Copy link

DiGilli commented Jan 19, 2024

Here [UK] it also fails ... upon vod start shows info box stating "unable to connect to 'www.amazon.co.uk'", upon "ok"ing info box terminates application and shows kodi video folder.
Update: after uninstalling, cleaning folders, and reinstalling vod 1.03, the error message is now
"Unable to find the navigation menu for www.amazon.co.uk". Rest is the same as above...
[RPi3 LE11/Kodi20 VOD 1.01 and 1.03]

@yrp888
Copy link

yrp888 commented Jan 19, 2024

Presumably my error is the same cause, but the message is "Unable to find the navigation menu for https://www.primevideo.com"

NUC8, NUC11, LE11.0.5, VOD1.03

@Sandmann79
Copy link
Owner

Amazon has now changed even more pages, so the adjustments in the add-on take more time.

In the meantime, the Android data source can be used. This is not affected by the changes. Only the profile change does not work there.

@Sandmann79 Sandmann79 changed the title Browsing the catalog is leading to errors Errors while browsing the catalog / Unable to find the navigation menu Jan 20, 2024
@rptaylor
Copy link

I found the same problem, with the error message "Unable to find the navigation menu for primevideo.com" just like #674 . Switching to the android data source fixes it again for now, thanks for the quick workaround!!
(However now there are duplicates of all the menu entries and I don't see an option to clear the cache anymore.)

@yrp888
Copy link

yrp888 commented Jan 20, 2024

Thanks Sandmann79, I tried the Android workaround and it's working as rptaylor confirmed.

We'll patiently wait on your fixes, appreciate all your hard work!

@berni123
Copy link

berni123 commented Jan 21, 2024

I can confim this issue since a few days ago. Fresh installation lateses Kodi-Nerds Repo with Sandman-Repo and AmazonVod 1.0.3 under Kodi/Nexus.

2024-01-21 18:12:45.211 T:6850 info <general>: [Amazon VOD] Service: Proxy bound to 127.0.0.1:44593
2024-01-21 18:12:45.212 T:6850 info <general>: [Amazon VOD] Service: Proxy server started
2024-01-21 18:12:45.212 T:6850 info <general>: [Amazon VOD] Service started
2024-01-21 18:13:13.742 T:6934 info <general>: [Amazon VOD] startup.py:44 Requested {}
2024-01-21 18:13:13.797 T:6934 info <general>: [Amazon VOD] startup.py:69 Version: 1.0.3+matrix.1
2024-01-21 18:13:13.798 T:6934 info <general>: [Amazon VOD] startup.py:70 Unicode filename support: False
2024-01-21 18:13:13.798 T:6934 info <general>: [Amazon VOD] startup.py:71 Locale: en-gb / Language: de
2024-01-21 18:13:13.801 T:6934 info <general>: [Amazon VOD] network.py:119 getURL: https://www.amazon.de/gp/video/storefront
2024-01-21 18:13:14.959 T:6934 info <general>: [Amazon VOD] network.py:208 Download Time: 1.1574572009999429
2024-01-21 18:13:15.151 T:6934 error <general>: [Amazon VOD] web_api.py:340 Watchlist link not found
024-01-21 18:13:17.168 T:6934 error <general>: [Amazon VOD] web_api.py:366 Unable to parse the navigation menu for https://www.amazon.de
2024-01-21 18:13:17.225 T:6933 error <general>: GetDirectory - Error getting plugin://plugin.video.amazon-test/
2024-01-21 18:13:17.235 T:6806 error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.amazon-test/) failed

@berni123
Copy link

Amazon has now changed even more pages, so the adjustments in the add-on take more time.

In the meantime, the Android data source can be used. This is not affected by the changes. Only the profile change does not work there.

Switching to android does not work. Same error, same crash:
error <general>: [Amazon VOD] Watchlist link not found
error <general>: [Amazon VOD] Unable to parse the navigation menu for https://www.amazon.de
error <general>: GetDirectory - Error getting plugin://plugin.video.amazon-test/
error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.amazon-test/) failed

@Sandmann79
Copy link
Owner

@berni123 this error message comes from the web data source. Sometimes the settings are not applied. Then it helps to start another add-on or to restart Kodi completely.

Btw v1.0.4 has just been uploaded, which makes the web data source functional again.

@yrp888
Copy link

yrp888 commented Jan 21, 2024

Thank you so much for all your hard work sorting this out so quickly Sandmann79, another donation on its way.

@Forlorn-Hope
Copy link

Bless you. Working as it was before.

@yrp888
Copy link

yrp888 commented Jan 22, 2024

Just managed to update the 3 NUCs and they are all working perfectly.

@berni123
Copy link

Confirm: New Version 1.0.4 works as expected.

@cow-crash
Copy link

it works. yeah. thanks for your great work.

@cpassuel
Copy link

cpassuel commented Jan 23, 2024

@berni123 this error message comes from the web data source. Sometimes the settings are not applied. Then it helps to start another add-on or to restart Kodi completely.

Btw v1.0.4 has just been uploaded, which makes the web data source functional again.

I feel so dumb, how do you install it ? I tried to update it from repository.sandmann79.plugins-1.0.4.zip but I don't have the choice to update to 1.0.4, I can only select 1.0.3 that I have already installed.
Do you need to uninstall it before ?

@Forlorn-Hope
Copy link

@berni123 this error message comes from the web data source. Sometimes the settings are not applied. Then it helps to start another add-on or to restart Kodi completely.
Btw v1.0.4 has just been uploaded, which makes the web data source functional again.

I feel so dumb, how do you install it ? I tried to update it from repository.sandmann79.plugins-1.0.4.zip but I don't have the choice to update to 1.0.4, I can only select 1.0.3 that I have already installed. Do you need to uninstall it before ?

I was able to update to 1.0.4 by going to Add-ons, and then checking for updates. It appears for me as an available update.

@cpassuel
Copy link

Well I was finally able to update by updating amazon vod repo instead of sandmann79s repository. It was not directly from the addon update, it's a bit weird mayeb it's because of my 9.2.8 version.
BTW 1.0.5 seems to works fine on RPi 4 and .2.8 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broken Functionality lost with amz update web_api
Projects
None yet
Development

No branches or pull requests

9 participants