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

Http error 410: Gone when trying to start program via categories #1126

Closed bhooyberghs closed 11 months ago

bhooyberghs commented 11 months ago

Describe the bug

Http error 410: Gone when trying to start program via categories

To Reproduce

Steps to reproduce the behavior:

  1. Go to Categorieën
  2. Click on any category e.g. Nieuws en actua
  3. Click on any program e.g. De afspraak
  4. See error

Expected behavior

start playing the program

Additional context

Log (if available)

2023-09-12 15:30:57.887 T:2396  critical <general>: [plugin.video.vrt.nu] HTTP Error 410: Gone
2023-09-12 15:30:57.948 T:2396    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'NoneType' object has no attribute 'get'
                                                   Traceback (most recent call last):
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\plugin.video.vrt.nu\resources\lib\addon_entry.py", line 14, in <module>
                                                       run(argv)
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\plugin.video.vrt.nu\resources\lib\addon.py", line 353, in run
                                                       plugin.run(argv)
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 130, in run
                                                       self._dispatch(self.path)
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 141, in _dispatch
                                                       view_func(**kwargs)
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\plugin.video.vrt.nu\resources\lib\addon.py", line 155, in programs
                                                       VRTPlayer().show_episodes_menu(program_name=program_name, season_name=season_name, end_cursor=end_cursor)
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\plugin.video.vrt.nu\resources\lib\vrtplayer.py", line 249, in show_episodes_menu
                                                       episodes, sort, ascending, content = get_episodes(program_name=program_name, season_name=season_name, end_cursor=end_cursor)
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\plugin.video.vrt.nu\resources\lib\api.py", line 977, in get_episodes
                                                       api_data = get_seasons(program_name)
                                                     File "C:\Users\bhooybergh\AppData\Roaming\Kodi\addons\plugin.video.vrt.nu\resources\lib\api.py", line 1018, in get_seasons
                                                       seasons = season_json.get('details').get('data').get('program').get('seasons')
                                                   AttributeError: 'NoneType' object has no attribute 'get'
                                                   -->End of Python script error report<--

2023-09-12 15:30:58.315 T:13276   error <general>: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.vrt.nu/programs/de-afspraak
2023-09-12 15:30:58.320 T:15600   error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/programs/de-afspraak) failed
on4bam commented 11 months ago

Can confirm. Only livestream works. Looks like a json change.

on4bam commented 11 months ago

Correction. Livestream is OK and after a program ends it can be started from the TV guide. As long as a program is running it can't be started from the TV-guide. RPi + Libreelec

TScheen commented 11 months ago

I can confirm the issue. Matrix on Philips Android TV 7.0. I can still start a program from TV Guide, but all of my favourites, Het Journaal, Terzake, etc. receive this error message. Live stream still works.

LeEcHeR123 commented 11 months ago

I can confirm the issue on Nexus 20.2 Nvidia Shield Pro Android Tv

mediaminister commented 11 months ago

I'm working on a fix. (https://github.com/add-ons/plugin.video.vrt.nu/pull/1127) You can test already an early version: Kodi 19/20/21: plugin.video.vrt.nu-2.5.24+matrix.1-gone-a45a2d8.zip Kodi 18: plugin.video.vrt.nu-2.5.24-gone-a45a2d8.zip

TScheen commented 11 months ago

Just tried the matrix fix, and the bug seems to have gone. Thx !👍

on4bam commented 11 months ago

Just did a quick test.. seems to work again. Thanks for the fast fix.

bhooyberghs commented 11 months ago

Can confirm, the fix solved it! Thx !

Clyde72 commented 11 months ago

Can confirm, issue solved with the fix. RPI 3B+, Kodi 19,5. Thx for the quick fix!

LeetaSehmwa commented 11 months ago

Confirmed on an nVidia Shield Pro. Launching individual episodes works (example, from the "Recent" tab), but the action "go to program" to access seasons and episode lists does not (from any starting point). Proposed fix works!

peno64 commented 11 months ago

@mediaminister

The fix doesn't seem to work for 'Thuis'. The list is empty. It does work for 'het journaal'

mediaminister commented 11 months ago

I'm still improving the fix, Thuis is fixed: Kodi 19/20/21: plugin.video.vrt.nu-2.5.24+matrix.1-tests-6de34ff.zip Kodi 18: plugin.video.vrt.nu-2.5.24-tests-6de34ff.zip

peno64 commented 11 months ago

@mediaminister great job!

mediaminister commented 11 months ago

Fixed and released: https://github.com/add-ons/plugin.video.vrt.nu/releases/tag/v2.5.25