21.3.2020, 15:55
Promiň, špatně jsem to napsal. Proměnná programCategory tam je ale je typu None. Proto tvé řešení nefunguje. Takto to funguje:
Zkoušel jsem jak na PC tak Android TV. Díky za pomoc
Kód:
if pi['programCategory'] is not None:
for c in pi['programCategory']['subCategories']:
programme.genres.append(c['desc'])
