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

Error on opening program on demand #1111

Closed SimonDeRidder closed 1 year ago

SimonDeRidder commented 1 year ago

Describe the bug

Since ~9 july, live TV works, but opening a specific program doesn't work. E.g. opening "Het Journaal" from "My Favourites" - "My Programs" gives error (see log below). Search will give results, but they can't be played.

Additional context

Log (if available)

2023-07-10 16:15:47.669 T:16630 critical <general>: [plugin.video.vrt.nu] JSON ValueError: Expecting value: line 1 column 1 (char 0)
2023-07-10 16:15:47.699 T:16630   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 "/home/watson/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py", line 14, in <module>
                                                       run(argv)
                                                     File "/home/watson/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 353, in run
                                                       plugin.run(argv)
                                                     File "/home/watson/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
                                                       self._dispatch(self.path)
                                                     File "/home/watson/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
                                                       view_func(**kwargs)
                                                     File "/home/watson/.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 "/home/watson/.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 "/home/watson/.kodi/addons/plugin.video.vrt.nu/resources/lib/api.py", line 977, in get_episodes
                                                       api_data = get_seasons(program_name)
                                                     File "/home/watson/.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<--
bhooyberghs commented 1 year ago

Same error on

Operating system: Libreelec 11.0.1 Kodi version: 20.1 Addon version: 2.5.22+matrix1 Using a VPN: no Country you are using the addon from: Belgium

and

Operating system: Windows 11 Pro versie 22H2 Kodi version: 20.1 Addon version: 2.5.22+matrix.1 Using a VPN: no Country you are using the addon from: Belgium

PeterCloet commented 1 year ago

Same issue here on Libreelec 10.0.2; Kodi 19.4. I found one update available in the add-on repo but that didn't fix the issue.

bhooyberghs commented 1 year ago

I think something changed on the Vrt website. As far as i can see, the addon is looking for a https://www.vrt.be/vrtmax/a-z/{categorie}.model.json file where {categorie} is fi vrt-nws-journaal, so it's looking for https://www.vrt.be/vrtmax/a-z/vrt-nws-journaal.model.json to get all the episodes of that category and can't find the file and therefore also not the necessary episode info.

ErwinBaeyens commented 1 year ago

Same error on raspberrypy libreelec 9.2.8 VRT Max plugin 2.5.22 NOTICE: [plugin.video.vrt.nu] Access: plugin://plugin.video.vrt.nu/programs/balthazar 2023-07-10 23:27:54.936 T:2407519040 ERROR: [plugin.video.vrt.nu] JSON ValueError: No JSON object could be decoded 2023-07-10 23:27:54.944 T:2407519040 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

mediaminister commented 1 year ago

I made a fix. Please test: Kodi 19, 20, 21: plugin.video.vrt.nu-2.5.22+matrix.1-seasons-5008e3b.zip Kodi 18: plugin.video.vrt.nu-2.5.22-seasons-5008e3b.zip

bhooyberghs commented 1 year ago

Thx ! It works on kodi 20.1 on windows 11 and librelec 11.0.1 !

SimonDeRidder commented 1 year ago

Confirmed, works for me as well!

LeEcHeR123 commented 1 year ago

Comfirmed working. Thanks!

bhooyberghs commented 1 year ago

Is this the same problem ? : choose Tv-gids, dinsdag 25 juli 2023, Vrt 1 , 13:00 VRT NWS journaal -> no response 13:30 - thuis -> starts playing

mediaminister commented 1 year ago

Is this the same problem ? : choose Tv-gids, dinsdag 25 juli 2023, Vrt 1 , 13:00 VRT NWS journaal -> no response 13:30 - thuis -> starts playing

This is not a problem. July 25 is a date in the future. Live programs like VRT NWS journaal will be available after broadcast.

mediaminister commented 1 year ago

Fixed in https://github.com/add-ons/plugin.video.vrt.nu/pull/1112

Bart80-1 commented 1 year ago

Hi, has this release been pushed yet to Kodi addon registry? https://kodi.tv/addons/matrix/plugin.video.vrt.nu/ still refers to 2.5.22

mediaminister commented 1 year ago

It should be available now.