Platformtools: incia variable item.title

Si item.title no existe, lo iniciamos como str, para evitar errones "NoType" cuando el canal no aporta este campo
This commit is contained in:
Kingbox
2018-12-19 11:34:44 +01:00
parent 086ef54b8b
commit bffbd371d3
@@ -152,6 +152,10 @@ def render_items(itemlist, parent_item):
if item.category == "": if item.category == "":
item.category = parent_item.category item.category = parent_item.category
# Si title no existe, lo iniciamos como str, para evitar errones "NoType"
if not item.title:
item.title = ''
# Si el item no contiene fanart, le ponemos el del item padre # Si el item no contiene fanart, le ponemos el del item padre
if item.fanart == "": if item.fanart == "":
item.fanart = parent_item.fanart item.fanart = parent_item.fanart