• Vítejte na XBMC-Kodi.cz
  • Česko-slovenská komunita fanoušků XBMC/Kodi
Vítejte návštevníku! Přihlášení Registrace


Hodnocení tématu:
  • 0 Hlas(ů) - 0 Průměr
  • 1
  • 2
  • 3
  • 4
  • 5
Sport Streams
#5
Ahoj.
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
Zkusmo jsem definici url přidal před řádek 98 podle příkladu o něco výše:
 
Kód:
url = get_url(action='play_ct4sportplus_stream', url = stream['link'])

a to pomohlo.
 
Citovat
  


Příspěvků v tématu
Sport Streams - od waladir - 26.6.2022, 6:45
RE: Sport Streams - od waladir - 14.12.2022, 19:46
RE: Sport Streams - od borecek - 14.12.2022, 20:43
RE: Sport Streams - od waladir - 14.12.2022, 21:04
RE: Sport Streams - od listener - 04.3.2023, 13:56
RE: Sport Streams - od waladir - 04.3.2023, 14:20
RE: Sport Streams - od 100karel - 19.3.2023, 18:39
RE: Sport Streams - od waladir - 19.3.2023, 21:06
RE: Sport Streams - od waladir - 20.3.2023, 20:13
RE: Sport Streams - od Petr87 - 01.4.2023, 14:40
RE: Sport Streams - od waladir - 01.4.2023, 20:27
RE: Sport Streams - od waladir - 04.4.2023, 11:37
RE: Sport Streams - od Petr87 - 07.4.2023, 19:20
RE: Sport Streams - od Keymag - 30.3.2024, 17:15
RE: Sport Streams - od waladir - 30.3.2024, 20:23
RE: Sport Streams - od bobo69 - 12.4.2024, 19:18
RE: Sport Streams - od waladir - 12.4.2024, 19:27
RE: Sport Streams - od xxkubik - 14.4.2024, 14:45
RE: Sport Streams - od waladir - 14.4.2024, 17:05
RE: Sport Streams - od xxkubik - 14.4.2024, 19:26
RE: Sport Streams - od waladir - 20.4.2024, 19:54
RE: Sport Streams - od xxkubik - 20.4.2024, 23:38
RE: Sport Streams - od JiRo - 21.4.2024, 14:00
RE: Sport Streams - od waladir - 21.4.2024, 14:17
RE: Sport Streams - od monco - 22.4.2024, 19:59
RE: Sport Streams - od jkmh - 22.4.2024, 20:12
RE: Sport Streams - od monco - 22.4.2024, 20:15
RE: Sport Streams - od jkmh - 22.4.2024, 20:22
RE: Sport Streams - od waladir - 22.4.2024, 20:51

Přejít na fórum:


Prochází: 1 host(ů)