add-ons / plugin.video.vrt.nu

Kodi add-on to watch content from VRT MAX

Home Page:https://www.facebook.com/groups/kodivlaanderen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal error: 404

K-Ray opened this issue · comments

commented

https://search7.vrt.be/ gives a 404 error and I can't find or play any video anymore since today.
anything I can patch?

  • Operating system: linux
  • Kodi version: 19.1
  • Addon version: 2.5.17
  • Using a VPN: no
  • Country you are using the addon from: BE

Log (if available)

2022-10-05 19:52:31.057 T:4353 FATAL : [plugin.video.vrt.nu] HTTP Error 404: Not Found
2022-10-05 19:52:31.535 T:4353 ERROR : 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/kvr/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py", line 14, in
run(argv)
File "/home/kvr/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 335, in run
plugin.run(argv)
File "/home/kvr/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
self._dispatch(self.path)
File "/home/kvr/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
view_func(**kwargs)
File "/home/kvr/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 146, in programs
VRTPlayer().show_episodes_menu(program_name=program_name, season=season)
File "/home/kvr/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 271, in show_episodes_menu
episode_items, sort, ascending, content = self._apihelper.list_episodes(program_name=program_name, season=season)
File "/home/kvr/.kodi/addons/plugin.video.vrt.nu/resources/lib/apihelper.py", line 135, in list_episodes
episodes = self.get_episodes(program=program_name, season=season, category=category, feature=feature, programtype=programtype, page=page,
File "/home/kvr/.kodi/addons/plugin.video.vrt.nu/resources/lib/apihelper.py", line 643, in get_episodes
api_pages = search_json.get('meta').get('pages').get('total')
AttributeError: 'NoneType' object has no attribute 'get'
-->End of Python script error report<--

VRT removed the search API today.
This means most menus stopped working.
I'm working on a fix. Work in progress!
I have already fixed the 'Most recent' and 'Favorite programs' menu.
The TV guide menu and Live TV menu should work.
You can test this:
Kodi 19 Matrix: plugin.video.vrt.nu-2.5.17+matrix.1-menufix-6bad201.zip
Kodi 18 Leia: plugin.video.vrt.nu-2.5.17-menufix-6bad201.zip

commented

Thanks for the quick fix.
Just tested it out and TV guide is working.

commented

Thanks for the fix!
Just what I needed :)

I fixed the categories menu.
Test packages:
Kodi 19 Matrix: plugin.video.vrt.nu-2.5.17+matrix.1-menufix-a774819.zip
Kodi 18 Leia: plugin.video.vrt.nu-2.5.17-menufix-a774819.zip

I tested a774819, still some https://search7.vrt.be/ problems present.
Example: "Hotel Romantiek: de kijk van de kroost" (should be in "Uitgelicht aanbod - Exclusief online")

Temporary fix used : Added it to my favorites using the VRT Max website (favorites work in a774819)

Is "Hotel Romantiek: de kijk van de kroost" in one of the featured lists on the VRT MAX homepage?

I already fixed the featured menu.
Test packages:
Kodi 19 Matrix: plugin.video.vrt.nu-2.5.17+matrix.1-featured-d0e32f3.zip
Kodi 18 Leia: plugin.video.vrt.nu-2.5.17-featured-d0e32f3.zip

On VRT Max website homepage, it appears in "Nieuw toegevoegd" and
the resulting URL is https://www.vrt.be/vrtnu/a-z/hotel-romantiek--de-kijk-van-de-kroost/
and has the "Human Interest" label,
it is also available from the "Alle programma's" link on the homepage (categorie "Human Interest")

So I tested d0e32f3 and checked the Human Interest categorie,
but this categorie gives an error :
...\Kodi 19-3 Matrix\portable_data\addons\plugin.video.vrt.nu\resources\lib\addon_entry.py", line 14
...\Kodi 19-3 Matrix\portable_data\addons\plugin.video.vrt.nu\resources\lib\addon.py", line 337
...\Kodi 19-3 Matrix\portable_data\addons\script.module.routing\lib\routing.py", line 130
...\Kodi 19-3 Matrix\portable_data\addons\script.module.routing\lib\routing.py", line 141
...\Kodi 19-3 Matrix\portable_data\addons\plugin.video.vrt.nu\resources\lib\addon.py", line 157
...\Kodi 19-3 Matrix\portable_data\addons\plugin.video.vrt.nu\resources\lib\vrtplayer.py", line 208
...\Kodi 19-3 Matrix\portable_data\addons\plugin.video.vrt.nu\resources\lib\api.py", line 632
...\Kodi 19-3 Matrix\portable_data\addons\plugin.video.vrt.nu\resources\lib\api.py", line 433,
in convert_programs
fanart = program.get('program').get('posterImage').get('templateUrl')
AttributeError: 'NoneType' object has no attribute 'get'
After that i checked the "Alle programma's" item of d0e32f3,
but this isn't working, it keeps searching, so I stopped it after 5 minutes

Yes, "Alle programma's" and "Zoeken" is still broken.

Latest test packages are working for me, thanks @mediaminister!

More fixes, search menu is working.
Test packages:
Kodi 19 Matrix: plugin.video.vrt.nu-2.5.17+matrix.1-search-c996557.zip
Kodi 18 Leia: plugin.video.vrt.nu-2.5.17-search-c996557.zip

hier ook :-)

@bart-fs1 Make sure you have the latest test package. If you get an error, please post the relevant section of your Kodi log.

"All programs" menu is still broken, I didn't find an API method yet to get the complete program list. You can use "Categories" menu instead or the "Search" menu if you know the name of the program.
I fixed "Soon offline" menu.
Test packages:
Kodi 19 Matrix: plugin.video.vrt.nu-2.5.17+matrix.1-offline-9ff172f.zip
Kodi 18 Leia: plugin.video.vrt.nu-2.5.17-offline-9ff172f.zip

9ff172f tested: I confirm that "Binnenkort offline", "Zoeken" and "Categorieen" (all categories) are working.

Concerning "All programs", maybe it is possible with

  • a search for everything (search is already working)
  • a fetch of all categories (categories is already working)

No solution for the "All programs" menu yet.
Other menus are fixed in the new v2.5.18 release: https://github.com/add-ons/plugin.video.vrt.nu/releases/tag/v2.5.18
I'll close this, please open a new issue when you encounter an error with version v2.5.18