diff --git a/calishot/ebooks_index.py b/calishot/ebooks_index.py index 2f9b7f7..fc3914a 100644 --- a/calishot/ebooks_index.py +++ b/calishot/ebooks_index.py @@ -85,11 +85,12 @@ def build_index (dir='.', english=True): for db in dbs: for i, ebook in enumerate(db["ebooks"].rows): - if english and not ebook['language'] or ebook['language'] != "eng": + if english and (not ebook['language'] or ebook['language'] != "eng"): continue elif not english and ebook['language'] == "eng": continue + if ebook['authors']: ebook['authors']=formats=json.loads(ebook['authors']) # if ebook['series']: