From a1db3129f228d2ea163c05097bf7f777eaf3139c Mon Sep 17 00:00:00 2001 From: myxdvz Date: Wed, 26 Nov 2025 01:50:54 +0000 Subject: [PATCH] handled null narrator_info --- myx_mam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myx_mam.py b/myx_mam.py index 97fdb31..dd1d367 100644 --- a/myx_mam.py +++ b/myx_mam.py @@ -126,7 +126,7 @@ def getMAMBook(cfg, titleFilename="", authors="", extension=""): book.authors.append(myx_classes.Contributor(str(author))) if 'narrator_info'in b: #format {id:narrator, id:narrator} - if len(b["narrator_info"]): + if ((not b["narrator_info"] is None) and len(b["narrator_info"])): narrators = json.loads(b["narrator_info"]) for narrator in narrators.values(): book.narrators.append(myx_classes.Contributor(str(narrator)))