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

Error when opening a tv show folder using the website api #734

Closed
2 of 4 tasks
Paco8 opened this issue Apr 18, 2024 · 6 comments
Closed
2 of 4 tasks

Error when opening a tv show folder using the website api #734

Paco8 opened this issue Apr 18, 2024 · 6 comments

Comments

@Paco8
Copy link
Contributor

Paco8 commented Apr 18, 2024

Addon used

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

Account type

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

System Setup (please provide the following information):

  • Hardware: PC
  • OS version: Ubuntu 22.04
  • Kodi version number: 19.4

Upload Logs

2024-04-18 15:21:49.301 T:8982    DEBUG <general>: [Amazon VOD] Requested /pv/browse/root/Watchlist/watchlist/tv
2024-04-18 15:21:49.394 T:8916    DEBUG <general>: ------ Window Init (DialogBusy.xml) ------
2024-04-18 15:21:49.687 T:8982    DEBUG <general>: [Amazon VOD] Download Time: 0.3838053370000125
2024-04-18 15:21:50.181 T:8982    DEBUG <general>: [Amazon VOD] Download Time: 0.4444083739999769
2024-04-18 15:21:50.242 T:8982    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: 'titleIds'
                                                   Traceback (most recent call last):
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/default.py", line 9, in <module>
                                                       EntryPoint(argv)
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 67, in EntryPoint
                                                       _g.pv.Route(verb, path)
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 184, in Route
                                                       elif 'browse' == verb: self._g.pv.Browse(path)
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 458, in Browse
                                                       node, breadcrumb = self._TraverseCatalog(path)
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 154, in _TraverseCatalog
                                                       self._LazyLoad(node[nodeName], pathList[0:1 + i])
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 1383, in _LazyLoad
                                                       bUpdatedVideoData |= AddSeason(breadcrumb[-1], o, bCacheRefresh, iu)
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 839, in AddSeason
                                                       bUpdatedVideoData |= ParseSinglePage(oid, season, bCacheRefresh, url=url)
                                                     File "/home/paco/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 1016, in ParseSinglePage
                                                       for e in le['titleIds']:
                                                   KeyError: 'titleIds'
                                                   -->End of Python script error report<--
   

Describe the bug

There's that error when I try to list a tv show folder, using the website api. I guess they changed something in the website.

@PsyEng
Copy link

PsyEng commented Apr 18, 2024

Change the data source to android, this should fix it. Maybe you've to login again or restart kodi/your device.

@stephematician
Copy link

Same error here.

@Paco8
Copy link
Contributor Author

Paco8 commented Apr 19, 2024

Change the data source to android, this should fix it. Maybe you've to login again or restart kodi/your device.

Yes, it works with the android api, but it seems it's not possible to change the profile with this api.

@stefano-salari
Copy link

Same error here with LibreElec 10.0.4 (on RPi2.arm) with plugin version 1.0.5+matrix.1

@Sandmann79
Copy link
Owner

This issue has been fixed/finished with 60b881c.

Just a short note regarding the new version:
Following recent changes to the website, Amazon no longer provides detailed information on all available seasons, only on the one currently selected.
This information is now only updated when a season is called up or when a show/season is refreshed manually.

@stefano-salari
Copy link

Thank you so much, I just installed the fix version and it works fine!
I'd say that my side the issue is fixed.

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

5 participants