fix per nfo corrotti

This commit is contained in:
marco
2021-01-09 15:23:19 +01:00
parent b489ee97b7
commit f5e384a554

View File

@@ -49,6 +49,8 @@ def read_nfo(path_nfo, item=None):
data = "\n".join(data.splitlines()[1:])
it_nfo = Item().fromjson(data)
if not it_nfo.library_playcounts: # may be corrupted
it_nfo.library_playcounts = {}
if item:
it = item.clone()