Closed NofanTasi closed 1 year ago
These error messages are disabled in https://github.com/add-ons/plugin.video.vrt.nu/pull/1036 I made a new release: https://github.com/add-ons/plugin.video.vrt.nu/releases/tag/v2.5.16
thanks for quick reaction
however soms things may meanwhile have changed again since now, when browsing 'News and current affairs' I see
2022-09-13 13:42:35.835 T:17468 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 "/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 355, 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 176, in categories
VRTPlayer().show_category_menu(category=category)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 211, in show_category_menu
self._favorites.refresh(ttl=ttl('indirect'))
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 40, in refresh
favorites_dict = self._generate_favorites_dict(self.get_favorites())
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 233, in _generate_favorites_dict
for item in favorites_json.get('data').get('list').get('paginated').get('edges'):
AttributeError: 'NoneType' object has no attribute 'get'
-->End of Python script error report<--
2022-09-13 13:42:36.681 T:17468 INFO <general>: Python interpreter stopped
2022-09-13 13:42:36.684 T:17506 INFO <general>: Skipped 1 duplicate messages..
2022-09-13 13:42:36.684 T:17506 ERROR <general>: GetDirectory - Error getting plugin://plugin.video.vrt.nu/categories/nieuws-en-actua
2022-09-13 13:42:36.701 T:3644 ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/categories/nieuws-en-actua) failed
2022-09-13 13:42:36.724 T:17517 INFO <general>: initializing python engine.
2022-09-13 13:42:37.052 T:17517 INFO <general>: CPythonInvoker(91, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
I can't reproduce this error, I guess this error occasionally happens for some unknown reason. I'll investigate.
@mediaminister et al thanks for valuable time and excellent software ... I uninstalled (and cleared data) and rebooted and reinstalled 2.5.16 matrix and configured my credentials. When navigating "Categories -> News and current affairs" red VRT MAX error pops up and the log shows:
2022-09-13 16:35:36.503 T:4167 INFO <general>: initializing python engine.
2022-09-13 16:35:36.819 T:4167 INFO <general>: CPythonInvoker(18, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2022-09-13 16:35:42.350 T:4167 INFO <general>: initializing python engine.
2022-09-13 16:35:42.450 T:4167 INFO <general>: CPythonInvoker(18, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2022-09-13 16:35:44.876 T:4167 INFO <general>: initializing python engine.
2022-09-13 16:35:45.098 T:4167 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 "/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 355, 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 176, in categories
VRTPlayer().show_category_menu(category=category)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 211, in show_category_menu
self._favorites.refresh(ttl=ttl('indirect'))
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 40, in refresh
favorites_dict = self._generate_favorites_dict(self.get_favorites())
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 233, in _generate_favorites_dict
for item in favorites_json.get('data').get('list').get('paginated').get('edges'):
AttributeError: 'NoneType' object has no attribute 'get'
-->End of Python script error report<--
2022-09-13 16:35:45.102 T:3849 INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-09-13 16:35:45.103 T:3849 INFO <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2022-09-13 16:35:45.104 T:3849 INFO <general>: CAESinkALSA - Use card "hw:0" and set codec format "2 CH PCM"
2022-09-13 16:35:45.106 T:3849 INFO <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif"
2022-09-13 16:35:45.106 T:3849 INFO <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2022-09-13 16:35:45.106 T:3849 INFO <general>: CAESinkALSA - Set codec for "Audio spdif format"
2022-09-13 16:35:45.106 T:3849 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "sysdefault:CARD=AMLAUGESOUND"
2022-09-13 16:35:45.113 T:3849 INFO <general>: CAESinkALSA::Initialize - Opened device "sysdefault:CARD=AMLAUGESOUND"
2022-09-13 16:35:45.115 T:3849 INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2022-09-13 16:35:45.117 T:3849 INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2022-09-13 16:35:46.000 T:4167 INFO <general>: Python interpreter stopped
2022-09-13 16:35:46.005 T:4176 INFO <general>: Skipped 2 duplicate messages..
2022-09-13 16:35:46.005 T:4176 ERROR <general>: GetDirectory - Error getting plugin://plugin.video.vrt.nu/categories/nieuws-en-actua
2022-09-13 16:35:46.023 T:3843 ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/categories/nieuws-en-actua) failed
2022-09-13 16:35:46.047 T:4179 INFO <general>: initializing python engine.
2022-09-13 16:35:46.337 T:4179 INFO <general>: CPythonInvoker(19, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
I can open a separate issue if you prefer so.
Have a nice day
I have a fix. Please test: Kodi 19 Matrix:plugin.video.vrt.nu-2.5.16+matrix.1-tokens-9086277.zip Kodi 18 Leia:plugin.video.vrt.nu-2.5.16-tokens-9086277.zip
@mediaminister : thanks for your swift action I am terribly sorry to let you know similar issue still present after fresh install matrix tokens-9086277
I wish I could help but I might need a quick kodi addon tutorial I am afriad...
2022-09-13 19:03:30.032 T:3843 INFO <general>: Loading skin file: AddonBrowser.xml, load type: KEEP_IN_MEMORY
2022-09-13 19:03:33.153 T:3843 INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2022-09-13 19:03:34.520 T:3843 INFO <general>: Loading skin file: FileBrowser.xml, load type: KEEP_IN_MEMORY
2022-09-13 19:03:38.214 T:3926 INFO <general>: CPythonInvoker(8, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/service_entry.py): script successfully run
2022-09-13 19:03:38.729 T:3926 WARNING <general>: CPythonInvoker(8, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/service_entry.py): the python script "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/service_entry.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
2022-09-13 19:03:38.729 T:3926 INFO <general>: Python interpreter interrupted by user
2022-09-13 19:03:39.020 T:6666 WARNING <general>: CAddonMgr::FindAddons: Addon 'metadata.generic.artists' already present with higher version 1.0.14 at '/usr/share/kodi/addons/metadata.generic.artists/' - other version 1.0.12 at '/storage/.kodi/addons/metadata.generic.artists/' will be ignored
2022-09-13 19:03:39.036 T:6666 WARNING <general>: CAddonMgr::FindAddons: Addon 'metadata.generic.albums' already present with higher version 1.0.14 at '/usr/share/kodi/addons/metadata.generic.albums/' - other version 1.0.13 at '/storage/.kodi/addons/metadata.generic.albums/' will be ignored
2022-09-13 19:03:39.046 T:6666 INFO <general>: CAddonMgr::FindAddon: plugin.video.vrt.nu v2.5.16+matrix.1 installed
2022-09-13 19:03:39.053 T:6668 INFO <general>: initializing python engine.
2022-09-13 19:03:39.268 T:3843 WARNING <general>: CGUIMediaWindow::OnMessage - updating in progress
2022-09-13 19:03:39.795 T:4603 INFO <general>: Python interpreter stopped
2022-09-13 19:03:46.625 T:3843 INFO <general>: Skipped 1 duplicate messages..
2022-09-13 19:03:46.625 T:3843 ERROR <general>: Control 55 in window 10025 has been asked to focus, but it can't
2022-09-13 19:03:46.636 T:6675 INFO <general>: initializing python engine.
2022-09-13 19:03:46.929 T:6675 INFO <general>: CPythonInvoker(28, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2022-09-13 19:03:50.592 T:6675 INFO <general>: initializing python engine.
2022-09-13 19:03:50.692 T:6675 INFO <general>: CPythonInvoker(28, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2022-09-13 19:03:53.160 T:6675 INFO <general>: initializing python engine.
2022-09-13 19:04:03.405 T:6675 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 "/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 355, 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 176, in categories
VRTPlayer().show_category_menu(category=category)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 211, in show_category_menu
self._favorites.refresh(ttl=ttl('indirect'))
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 40, in refresh
favorites_dict = self._generate_favorites_dict(self.get_favorites())
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 233, in _generate_favorites_dict
for item in favorites_json.get('data').get('list').get('paginated').get('edges'):
AttributeError: 'NoneType' object has no attribute 'get'
-->End of Python script error report<--
2022-09-13 19:04:03.411 T:3849 INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-09-13 19:04:03.412 T:3849 INFO <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2022-09-13 19:04:03.412 T:3849 INFO <general>: CAESinkALSA - Use card "hw:0" and set codec format "2 CH PCM"
2022-09-13 19:04:03.414 T:3849 INFO <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif"
2022-09-13 19:04:03.414 T:3849 INFO <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2022-09-13 19:04:03.414 T:3849 INFO <general>: CAESinkALSA - Set codec for "Audio spdif format"
2022-09-13 19:04:03.415 T:3849 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "sysdefault:CARD=AMLAUGESOUND"
2022-09-13 19:04:03.424 T:3849 INFO <general>: CAESinkALSA::Initialize - Opened device "sysdefault:CARD=AMLAUGESOUND"
2022-09-13 19:04:03.425 T:3849 INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2022-09-13 19:04:03.425 T:3849 INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2022-09-13 19:04:04.264 T:6675 INFO <general>: Python interpreter stopped
2022-09-13 19:04:04.266 T:6679 INFO <general>: Skipped 2 duplicate messages..
2022-09-13 19:04:04.266 T:6679 ERROR <general>: GetDirectory - Error getting plugin://plugin.video.vrt.nu/categories/nieuws-en-actua
2022-09-13 19:04:04.284 T:3843 ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/categories/nieuws-en-actua) failed
2022-09-13 19:04:04.295 T:6688 INFO <general>: initializing python engine.
2022-09-13 19:04:04.596 T:6688 INFO <general>: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2022-09-13 19:04:49.809 T:3843 INFO <general>: Loading skin file: DialogAddonInfo.xml, load type: KEEP_IN_MEMORY
2022-09-13 19:04:55.359 T:6668 INFO <general>: CPythonInvoker(27, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/service_entry.py): script successfully run
2022-09-13 19:04:55.867 T:6668 WARNING <general>: CPythonInvoker(27, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/service_entry.py): the python script "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/service_entry.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
2022-09-13 19:04:55.867 T:6668 INFO <general>: Python interpreter interrupted by user
2022-09-13 19:05:01.283 T:3843 INFO <general>: Loading skin file: FileBrowser.xml, load type: KEEP_IN_MEMORY
2022-09-13 19:05:08.160 T:6710 WARNING <general>: CAddonMgr::FindAddons: Addon 'metadata.generic.artists' already present with higher version 1.0.14 at '/usr/share/kodi/addons/metadata.generic.artists/' - other version 1.0.12 at '/storage/.kodi/addons/metadata.generic.artists/' will be ignored
2022-09-13 19:05:08.176 T:6710 WARNING <general>: CAddonMgr::FindAddons: Addon 'metadata.generic.albums' already present with higher version 1.0.14 at '/usr/share/kodi/addons/metadata.generic.albums/' - other version 1.0.13 at '/storage/.kodi/addons/metadata.generic.albums/' will be ignored
2022-09-13 19:05:08.186 T:6710 INFO <general>: CAddonMgr::FindAddon: plugin.video.vrt.nu v2.5.16+matrix.1 installed
2022-09-13 19:05:08.195 T:6715 INFO <general>: initializing python engine.
2022-09-13 19:05:08.395 T:3843 WARNING <general>: CGUIMediaWindow::OnMessage - updating in progress
2022-09-13 19:05:08.948 T:6688 INFO <general>: Python interpreter stopped
2022-09-13 19:05:15.725 T:3843 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-09-13 19:05:15.945 T:3843 INFO <general>: Skipped 2 duplicate messages..
2022-09-13 19:05:15.945 T:3843 INFO <general>: Loading skin file: DialogAddonSettings.xml, load type: KEEP_IN_MEMORY
2022-09-13 19:05:17.592 T:3843 INFO <general>: Loading skin file: DialogKeyboard.xml, load type: KEEP_IN_MEMORY
2022-09-13 19:05:26.558 T:3843 WARNING <general>: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-09-13 19:05:36.712 T:6715 INFO <general>: Skipped 87 duplicate messages..
2022-09-13 19:05:36.712 T:6715 ERROR <general>: GetDirectory - Error getting /storage/.kodi/userdata/addon_data/plugin.video.vrt.nu/cache/
2022-09-13 19:05:38.529 T:3843 ERROR <general>: Control 55 in window 10025 has been asked to focus, but it can't
2022-09-13 19:05:38.548 T:6753 INFO <general>: initializing python engine.
2022-09-13 19:05:47.028 T:6753 INFO <general>: CPythonInvoker(31, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2022-09-13 19:05:48.470 T:6753 INFO <general>: initializing python engine.
2022-09-13 19:05:48.569 T:3843 WARNING <general>: CGUIMediaWindow::OnMessage - updating in progress
2022-09-13 19:05:48.633 T:6753 INFO <general>: CPythonInvoker(31, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
2022-09-13 19:05:56.427 T:6753 INFO <general>: initializing python engine.
2022-09-13 19:06:01.659 T:6753 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 "/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 355, 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 176, in categories
VRTPlayer().show_category_menu(category=category)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 211, in show_category_menu
self._favorites.refresh(ttl=ttl('indirect'))
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 40, in refresh
favorites_dict = self._generate_favorites_dict(self.get_favorites())
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 233, in _generate_favorites_dict
for item in favorites_json.get('data').get('list').get('paginated').get('edges'):
AttributeError: 'NoneType' object has no attribute 'get'
-->End of Python script error report<--
2022-09-13 19:06:01.677 T:3849 INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-09-13 19:06:01.677 T:3849 INFO <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2022-09-13 19:06:01.678 T:3849 INFO <general>: CAESinkALSA - Use card "hw:0" and set codec format "2 CH PCM"
2022-09-13 19:06:01.680 T:3849 INFO <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif"
2022-09-13 19:06:01.680 T:3849 INFO <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2022-09-13 19:06:01.680 T:3849 INFO <general>: CAESinkALSA - Set codec for "Audio spdif format"
2022-09-13 19:06:01.681 T:3849 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "sysdefault:CARD=AMLAUGESOUND"
2022-09-13 19:06:01.688 T:3849 INFO <general>: CAESinkALSA::Initialize - Opened device "sysdefault:CARD=AMLAUGESOUND"
2022-09-13 19:06:01.688 T:3849 INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2022-09-13 19:06:01.689 T:3849 INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2022-09-13 19:06:02.515 T:6753 INFO <general>: Python interpreter stopped
2022-09-13 19:06:02.525 T:6760 INFO <general>: Skipped 2 duplicate messages..
2022-09-13 19:06:02.525 T:6760 ERROR <general>: GetDirectory - Error getting plugin://plugin.video.vrt.nu/categories/nieuws-en-actua
2022-09-13 19:06:02.528 T:3843 ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/categories/nieuws-en-actua) failed
2022-09-13 19:06:02.539 T:6763 INFO <general>: initializing python engine.
2022-09-13 19:06:02.861 T:6763 INFO <general>: CPythonInvoker(32, /storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py): script successfully run
I had the same problem. For me the issue seems fixed with 2.5.16 (I'm on Leia)
@Timvissers with same problem you mean
(a) rest/list/vrt-nu-favorite?Programs popup?
(b) GetDirectory - Error getting plugin://plugin.video.vrt.nu/categories/
I have two 2.5.16 on Matrix with (b) and without (a) [fixed from 2.5.15 to 2.5.16]
update @mediaminister :
I suspect to know why I suffered from (b) GetDirectory Error. ... because I had emptied my favorite list. As suggested I recreated the favorite list identically (I did so online in browser) and now I can browse the categories and play content. Also: the favorites show the yellow flag. I am sorry if this simple detail/advise may have been root cause of specific deviating behavior.
Just adding to the "favorites issue". Although all favorites are listed in the app (android) and website only half of them are visible in this plugin. I have to add the missing programs again in the plugin and when adding a new program to the favorites it does show up on the website and android app. I suspect some kind of caching issue.
Thanks for reporting these bugs. I'm looking into it. Displaying favorites in the add-on is currently limited to 10 items. I'll fix it.
@mediaminister
fwiw here is how I can reproduce:
Starting from working addon. If I empty my favorites list in kodi addon, the GetDirectory occurs as soon as I remove last element in the list. If, next, I fill my favorites list (in browser on a computer), kodi addon navigating works again.
Hope this helps.
I seem to have a similar issue. The only thing that appears to work in the add-on is the live viewing. Everything else seems to fail. I have no idea what my favorites would be or how I would use them. I didn’t even know the concept of favorites existed until this discussion popped up.
Relevant contents from the log:
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 233, in _generate_favorites_dict for item in favorites_json.get('data').get('list').get('paginated').get('edges'): AttributeError: 'NoneType' object has no attribute 'get’
This error appears by going to the categories, then opening any one of those.
Unfortunately, I still can't reproduce this even when I empty my favorites. I made a couple of changes though, so please test: Kodi 19 Matrix: plugin.video.vrt.nu-2.5.16+matrix.1-master-325c3fc.zip Kodi 18 Leia: plugin.video.vrt.nu-2.5.16-master-325c3fc.zip
@mediaminister Thanks for test image. It will test it tomorrow.
Thanks for the help!
I tested this version with Matrix. Well, I copied the zip file on a USB drive and then manually installed the add-on from the zip file, getting a message that VRT (nu/max?) had been updated.
But it still doesn’t work.
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 355, 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 166, in programs
VRTPlayer().show_episodes_menu(program=program, season=season)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 274, in show_episodes_menu
self._favorites.refresh(ttl=ttl('indirect'))
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 40, in refresh
favorites_dict = self._generate_favorites_dict(self.get_favorites())
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/favorites.py", line 80, in get_favorites
access_token = TokenResolver().get_token('vrtnu-site_profile_at')
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tokenresolver.py", line 210, in get_token
token = self._get_new_token(name, variant, roaming=roaming)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tokenresolver.py", line 176, in _get_new_token
return self.login()
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tokenresolver.py", line 168, in login
return self._get_new_token(name='vrtnusite_profile_at', redirect_url=redirect_url)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tokenresolver.py", line 186, in _get_new_token
tokens = self._extract_tokens(response)
File "/storage/.kodi/addons/plugin.video.vrt.nu/resources/lib/tokenresolver.py", line 62, in _extract_tokens
cookie_data = response.info().getheaders('Set-Cookie')
AttributeError: 'NoneType' object has no attribute ‘info’
Yesterday evening I opened the VRT max website and added a random program as a favorite. Using the vanilla VRT nu, this allowed me to get past the categories menu and see e.g. the available series. But I got an error opening, say, the folder containing the ‘Undercover’ series.
The error above was generated by the patched version uploaded immediately above. It also failed trying to open the series. I also got a bunch of extra ‘couldn’t load vrt user token’ (or similar) messages, which I hadn’t seen before.
Unfortunately, I still can't reproduce this even when I empty my favorites. I made a couple of changes though, so please test: Kodi 19 Matrix: plugin.video.vrt.nu-2.5.16+matrix.1-master-325c3fc.zip Kodi 18 Leia: plugin.video.vrt.nu-2.5.16-master-325c3fc.zip
I compare release 2.5.16 matrix and 325c3fc 2.5.16 matrix .
Same reproduction scenario: Starting from working addon. If I empty my favorites list in kodi addon, the red error and GetDirectory log occurs as soon as I remove last element in the list. If, next, I fill my favorites list (in browser on a computer), kodi addon navigating works again. I get same behaviour for both.
Note that I am logged in (and the favorites happen to be de afspraak pano terzake and vrt nws).
It seems something subtle related to favorites is culprit.
Good luck and thanks for all your work
I can't reproduce, so I need a full debug log to fix this: https://kodi.wiki/view/Log_file/Easy Also, enable Debug logging in Expert settings in de VRT NU add-on.
Sure, here it is, generated this just now. Let me know if you need any of the other files also.
You don't get a response from the VRT login server:
[plugin.video.vrt.nu] Timeout: The read operation timed out
And an empty response makes the add-on crash. I can fix the crash, try to connect again, but I guess the timeout problem is related to the VRT server or your network connection.
I can reproduce your error when I disable my internet connection.
That would explain why sometimes I can get a bit further in the menu structure before the error occurs. I just generated another log and it indeed has a read timeout as well.
I also get messages that the user token couldn’t be loaded, but these appear as warnings, not errors. I guess that there are automatic retries for that? Perhaps that’s also a solution here? I don’t know. But otherwise I’m not aware of any problems with our internet connection.
I see the timeout occurs after 3 seconds, it can be related to the VRT login server. But then it's strange I never get such timeouts. I made a workaround for the add-on crash, so the menu gets loaded. New test package: Kodi 19 Matrix: plugin.video.vrt.nu-2.5.16+matrix.1-fixes-f59bdcf.zip Kodi 18 Leia: plugin.video.vrt.nu-2.5.16-fixes-f59bdcf.zip
Tried it. When browsing the categories, every folder I open seems to result in a banner saying that it failed to get the token, then an error, after pressing ‘ok’ it seems to retry and work (at least I didn’t see it throw the error twice in a row in my very limited testing). So that’s an automatic retry happening?
Actually playing something doesn’t work - error message that ‘I need to have an account to use the service’ (or something to that effect).
You need to configure your VRT username and password in the add-on settings indeed. Normally you should get a login screen if your username or password is missing or wrong. I can't imagine what is wrong here, but it seems the VRT login server doesn't accept your login.
I need the error log though to fix this.
Oh, there is a username and password, we’ve been using the add on for years. I just confirmed that the account name and password are indeed set in the settings.
Here’s a movie showing the issues in action:
https://user-images.githubusercontent.com/1118089/191207821-6c15f254-4580-413f-bb03-0a5c4a0d5d67.mp4
Which error do you want a log for? I assume each error results in a new log?
Kodi uses a single log file. I need to find out why you don't get the access token.
Here it is!
You get a timeout 4 seconds after requesting the access token. This happens multiple times. For some reason, VRT login server isn't responding to your login requests. I don't have a clue why this is happening.
The log you provided is not a full debug log. You need to enable debug logging in Kodi settings and in Expert settings in de VRT NU add-on. A full debug log will provide much more info that I can use to determine why the login is failing.
Yes, but the only thing I can see is the timeout.
Without much knowledge, I don’t really see what you can do about a timeout since it’s such a fundamental and low-level operation. Perhaps our ISP (Scarlet) just has a low-quality connection to the VRT or a misconfiguration. I don’t know. But viewing does work in the browser. How about silently retrying a couple of times? Live viewing works fine, so it looks like the issue really is with browsing and locating the stream, not playing the stream itself.
It has something to do with the request to the VRT login server. I don't think it's related to the ISP because all other requests to VRT servers are working. You need to login to play on demand streams. But you can always play livestreams without login, so that makes sense. I have all the information I need now. I'll investigate and improve the login requests.
Okay, I found a bug in my code. New test packages: Kodi 19 Matrix: plugin.video.vrt.nu-2.5.16+matrix.1-fixes-fd57af8.zip Kodi 18 Leia: plugin.video.vrt.nu-2.5.16-fixes-fd57af8.zip
Still not working, here’s the log. I don’t get messages about the failure to get the user token anymore, but playing the content still doesn’t work with a message that I need an account. Browsing the catalog also leads to errors about the connection, though not always. kodi.log
I can't reproduce, so I need a full debug log to fix this: https://kodi.wiki/view/Log_file/Easy Also, enable Debug logging in Expert settings in de VRT NU add-on.
attached log for following scenario (2.5.16 release)
enable debug logging
reboot
open vrt-nu
my favorites
my programs
unfollow 4 entries one by one
de-afspraak
pano
terzake
vrt-nws-journaal
>>>> see red X 'VRT MAX error (check log)' on screen (and in log +/- 14:33:39)
on linux computer with chrome browser add programs again
open vrt-nu
my favorites
my programs
4 entries back
and everything works
(I played de-afspraak)
disable debug logging
reboot
save old log file
Note that under normal conditions all works fine for me. Only the program favorite manipulation seems to affect odd behaviour
Also note once red X 'VRT MAX error appeared, almost any navigation shows same error over and over.
If you need a log with some moer such errors, let me know.
If you live near Antwerp I can come show errors or you can come debug them here.
@pdedecker No clue yet, I increased the timeout. Please test: Kodi 19 Matrix: plugin.video.vrt.nu-2.5.16+matrix.1-fixes-73057a8.zip Kodi 18 Leia: plugin.video.vrt.nu-2.5.16-fixes-73057a8.zip
@NofanTasi You provided a log with an error referring to an older version, this error should be fixed in the newer test packages. Please reboot Kodi after installing!
@mediaminister I will test 73057a8 now
@mediaminister same scenario same issue with 73057a8 ... thanks for you patience
I added a few more errors this time by navigating post first error
Quick test of this latest version: the errors navigating the directories appear to be gone (though I do have to wait a bit). I also don’t see any user token messages. But I can’t play actual content because I get the error that an account is needed
Note: I forgot to reboot to clear the log. The test with this plugin has timestamps around 17:00.
@pdedecker I guess the problem is not fixed with increasing the timeout. Maybe you can try with another account. I made a test account that should work: login: mediaminister+testvrtmax@gmail.com password: 1TestVRTMAX
@NofanTasi New test packages, I catch the AtrributeError now. Wondering if it will work now. Kodi 19 Matrix: plugin.video.vrt.nu-2.5.16+matrix.1-fixes-6b3dd68.zip Kodi 18 Leia plugin.video.vrt.nu-2.5.16-fixes-6b3dd68.zip
Tried your account - same result. Browsing works but I ‘need a vrt account’ when I want to actually play something.
I then re-configured the plugin with an incorrect password for your account, which immediately gave an error that the login credentials were invalid. So logging in as part of setting up the account works, but actually playing something doesn’t.
I know, the login flow works, but getting the actual access token times out on your Kodi installation. Maybe you could try a Kodi installation on a pc. I guess the problem is related to a slow memory card on RPi.
New test packages: Kodi 19 Matrix plugin.video.vrt.nu-2.5.16+matrix.1-fixes-f3b8c44.zip Kodi 18 Leia plugin.video.vrt.nu-2.5.16-fixes-f3b8c44.zip
Did some brief testing and the new test package (matrix) seems to be working! Many thanks for the fix!
@mediaminister
@NofanTasi [...] Please reboot Kodi after installing!
OOPS! this was the missing step in my reproductions ....
After installing test version I had always immediately tested it without reboot :-( But now, after reboot, I can (un)follow programs without any GetDirectory side effects.
I feel so sorry to have wasted much of your valuable time.
And thanks for the fix!
You have my vote for closing the issue.
I'm happy I could improve the codebase thanks to your feedback. I don't consider this wasted time.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Basically I can watch VRT-MAX but need to click away the error popup several times while navigating
addon uninstall/reinstall gives same behavior
kodi log has FATAL entries such as below:
Additional context
Log (if available)