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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user