Sandmann79/xbmc

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

neunzehnachtneun opened this issue ยท 19 comments

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

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.

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...

also don't work here...

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 commented

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

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.

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 commented

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!

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

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

@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 commented

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

Bless you. Working as it was before.

yrp888 commented

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

Confirm: New Version 1.0.4 works as expected.

it works. yeah. thanks for your great work.

@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 ?

@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.

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