Format manga and rating

This commit is contained in:
Mizaki 2023-03-02 00:10:52 +00:00
parent 73738010b8
commit c9638ba0d9

View File

@ -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