From c9638ba0d9227a88e99934c6d2cad95614808693 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Thu, 2 Mar 2023 00:10:52 +0000 Subject: [PATCH] Format manga and rating --- comictalker/talker_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/comictalker/talker_utils.py b/comictalker/talker_utils.py index b69479d..5f4f8fa 100644 --- a/comictalker/talker_utils.py +++ b/comictalker/talker_utils.py @@ -77,9 +77,12 @@ def map_comic_issue_to_metadata( if issue_results.tags: metadata.tags = set(issue_results.tags) if issue_results.manga: - metadata.manga = issue_results.manga + if issue_results.manga in ["Yes", "yes", "No", "no", "YesAndRightToLeft", "yesandrighttoleft"]: + metadata.manga = issue_results.manga + else: + metadata.manga = "Unknown" if issue_results.rating: - metadata.critical_rating = issue_results.rating + metadata.critical_rating = utils.xlate(issue_results.rating, is_float=True) return metadata