add-ons / plugin.video.vrt.nu

Kodi add-on to watch content from VRT MAX
https://www.facebook.com/groups/kodivlaanderen
GNU General Public License v3.0
110 stars 20 forks source link

Bad request when trying to get TV Guide listing possible regression from #954 #1158

Closed ErwinBaeyens closed 5 months ago

ErwinBaeyens commented 5 months ago

Describe the bug

When trying to open the listing on TV Guide, after selecting a day and a channel I get an error message and no listing is returned

To Reproduce

Steps to reproduce the behavior:

  1. Go to TV Guide
  2. Click on any date and select one of the channels
  3. See error VRT MAX Error See the log for more information

Expected behavior

The listing of the programs on that channel and day

Additional context

Log (if available)

2024-04-14 21:08:36.306 T:983      INFO <general>: Python interpreter stopped
2024-04-14 21:08:36.319 T:1019     INFO <general>: Skipped 8 duplicate messages..
2024-04-14 21:08:36.319 T:1019    ERROR <general>: GetDirectory - Error getting plugin://plugin.video.vrt.nu/tvguide/date/yesterday/canvas
2024-04-14 21:08:36.333 T:843     ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/tvguide/date/yesterday/canvas) failed
2024-04-14 21:08:36.362 T:1021     INFO <general>: initializing python engine.
2024-04-14 21:08:36.751 T:1021     INFO <general>: CPythonInvoker(11, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2024-04-14 21:08:42.626 T:1021     INFO <general>: initializing python engine.
2024-04-14 21:08:43.150 T:1021    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'urllib.error.HTTPError'>
                                                   Error Contents: HTTP Error 400: Bad Request
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py", line 14, in <module>
                                                       run(argv)
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 353, in run
                                                       plugin.run(argv)
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
                                                       self._dispatch(self.path)
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
                                                       view_func(**kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 215, in tvguide
                                                       TVGuide().show_tvguide(date=date, channel=channel)
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tvguide.py", line 51, in show_tvguide
                                                       episode_items = self.get_episode_items(date, channel)
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tvguide.py", line 176, in get_episode_items
                                                       path = self.get_episode_path(episode, channel)
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tvguide.py", line 255, in get_episode_path
                                                       video_id, publication_id = self.get_stream_ids(episode_id=episode.get('episodeId'))
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tvguide.py", line 244, in get_stream_ids
                                                       episode = get_url_json(url=url, cache=None, headers=headers, data=data, raise_errors='all').get('data').get('catalogMember')
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/kodiutils.py", line 1216, in get_url_json
                                                       response = open_url(url, headers=headers, data=data, raise_errors=raise_errors)
                                                     File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/kodiutils.py", line 1147, in open_url
                                                       return opener.open(req)
                                                     File "/usr/lib/python3.8/urllib/request.py", line 531, in open
                                                     File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
                                                     File "/usr/lib/python3.8/urllib/request.py", line 569, in error
                                                     File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
                                                     File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
                                                   urllib.error.HTTPError: HTTP Error 400: Bad Request
                                                   -->End of Python script error report<--