|
|
@ -85,11 +85,12 @@ def build_index (dir='.', english=True):
|
|
|
|
|
|
|
|
|
|
|
|
for db in dbs:
|
|
|
|
for db in dbs:
|
|
|
|
for i, ebook in enumerate(db["ebooks"].rows):
|
|
|
|
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
|
|
|
|
continue
|
|
|
|
elif not english and ebook['language'] == "eng":
|
|
|
|
elif not english and ebook['language'] == "eng":
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ebook['authors']:
|
|
|
|
if ebook['authors']:
|
|
|
|
ebook['authors']=formats=json.loads(ebook['authors'])
|
|
|
|
ebook['authors']=formats=json.loads(ebook['authors'])
|
|
|
|
# if ebook['series']:
|
|
|
|
# if ebook['series']:
|
|
|
|