mirror of
https://github.com/yihong0618/Kindle_download_helper.git
synced 2025-11-22 07:59:04 +08:00
fix: author format bug
This commit is contained in:
@@ -194,12 +194,15 @@ class NoKindle:
|
||||
is_pdoc = i.get("origins") is None
|
||||
if not is_pdoc:
|
||||
order_id = i["origins"]["origin"]["id"]
|
||||
|
||||
if isinstance(i.get("authors", {}).get("author"), list):
|
||||
if i["authors"] is None:
|
||||
book_authors = ""
|
||||
elif isinstance(i.get("authors", {}).get("author"), list):
|
||||
book_authors = i.get("authors", {}).get("author", "")
|
||||
else:
|
||||
if is_pdoc:
|
||||
book_authors = i["authors"].get("author", "")
|
||||
elif isinstance(i["authors"].get("author"), str):
|
||||
book_authors = i["authors"].get("author", "")
|
||||
elif i["authors"].get("author", {}).get("#text", ""):
|
||||
book_authors = i["authors"].get("author", {}).get("#text", "")
|
||||
if isinstance(book_authors, list):
|
||||
|
||||
Reference in New Issue
Block a user