Repos / pytaku / 0504b5ab1a
commit 0504b5ab1a536a6cb4742ae41a69798396d68487
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Sat Sep 4 11:45:49 2021 +0700
handle mangadex "none" volume
diff --git a/src/mangoapi/mangadex.py b/src/mangoapi/mangadex.py
index 209eff4..9a2df2d 100644
--- a/src/mangoapi/mangadex.py
+++ b/src/mangoapi/mangadex.py
@@ -78,7 +78,9 @@ def get_chapters_list(self, title_id):
"id": chap["id"],
"name": "",
"groups": [], # TODO
- "volume": vol["volume"],
+ "volume": vol["volume"]
+ if vol["volume"] not in (None, "none")
+ else "",
**_parse_chapter_number(chap["chapter"]),
}
for chap in vol["chapters"].values() # again, fucking yikes