ich möchte ein ListItem aus einem ListItem aufrufen:
Code: Alles auswählen
SPWatchtypes = {'international': 1, 'german': 5, 'classics': 3, 'soap': 2}
SPTranslations = {'international': __LS__(30120), 'german': __LS__(30121), 'classics': __LS__(30122), 'soap': __LS__(30123)}
Code: Alles auswählen
if methode=='show_select_dialog':
writeLog('Methode: show select dialog', level=xbmc.LOGDEBUG)
dialog = xbmcgui.Dialog()
cats = [__LS__(30120), __LS__(30121), __LS__(30122), __LS__(30123), __LS__(30116)]
ret = dialog.select(__LS__(30011), cats)
Code: Alles auswählen
scrapeWLPage(SPWatchtypes[ret])
(SPWatchtypes[ret]) eigendlich 1 ist er aber nicht so... ich bekomme immer eine Fehlermeldung
Error Type: <type 'exceptions.KeyError'>
Error Contents: (0,)
Traceback (most recent call last):
File "G:\KODI-Krypton\portable_data\addons\plugin.program.serienplaner\default.py", line 626, in <module>
scrapeWLPage(SPWatchtypes[ret])
KeyError: (0,)