04.3.2023, 13:56
(Tento příspěvek byl naposledy změněn: 04.3.2023, 13:58 uživatelem listener.
Důvod úpravy: Oprava překlepu.
)
Ahoj.
Někdy (zrovna v tuto chvíli to tak je) se po kliknutí na položku "ČT4 Sport Plus"
objevuje tato chyba:
Zkusmo jsem definici url přidal před řádek 98 podle příkladu o něco výše:
a to pomohlo.
Někdy (zrovna v tuto chvíli to tak je) se po kliknutí na položku "ČT4 Sport Plus"
objevuje tato chyba:
Kód:
2023-03-04 12:31:04.646 T:14740 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2023-03-04 12:31:04.666 T:14740 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'UnboundLocalError'>
Error Contents: local variable 'url' referenced before assignment
Traceback (most recent call last):
File "C:\Users\lubos\AppData\Roaming\Kodi\addons\plugin.video.sportstreams\main.py", line 271, in <module>
router(sys.argv[2][1:])
File "C:\Users\lubos\AppData\Roaming\Kodi\addons\plugin.video.sportstreams\main.py", line 177, in router
list_ct4sportplus_main(params['label'])
File "C:\Users\lubos\AppData\Roaming\Kodi\addons\plugin.video.sportstreams\libs\ct4sportplus.py", line 98, in list_ct4sportplus_main
xbmcplugin.addDirectoryItem(_handle, url, list_item, False)
UnboundLocalError: local variable 'url' referenced before assignment
-->End of Python script error report<--
2023-03-04 12:31:04.890 T:11484 error <general>: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.sportstreams/?action=list_ct4sportplus_main&label=%c4%8cT4%20Sport%20Plus
2023-03-04 12:31:04.897 T:7332 error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sportstreams/?action=list_ct4sportplus_main&label=%c4%8cT4%20Sport%20Plus) failed
Kód:
url = get_url(action='play_ct4sportplus_stream', url = stream['link'])
a to pomohlo.