From 2afb604ab35e247e794d107afa930faf7432add9 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Thu, 8 Jun 2023 00:52:24 +0100 Subject: [PATCH 1/2] Fix issue_count and add maturity rating --- comictalker/talker_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comictalker/talker_utils.py b/comictalker/talker_utils.py index 92b32d6..25851fc 100644 --- a/comictalker/talker_utils.py +++ b/comictalker/talker_utils.py @@ -46,7 +46,7 @@ def map_comic_issue_to_metadata( metadata.issue = IssueString(issue_results.issue_number).as_string() # Rely on comic talker to validate this number - metadata.issue_count = utils.xlate_int(issue_results.series.volume) + metadata.issue_count = utils.xlate_int(issue_results.series.count_of_issues) if issue_results.series.format: metadata.format = issue_results.series.format @@ -102,6 +102,9 @@ def map_comic_issue_to_metadata( if issue_results.critical_rating: metadata.critical_rating = utils.xlate_float(issue_results.critical_rating) + if issue_results.maturity_rating: + metadata.maturity_rating = issue_results.maturity_rating + if issue_results.language: metadata.language = issue_results.language From 4b415b376fb25f816ba15e5c0919a6d89c01ac7c Mon Sep 17 00:00:00 2001 From: Mizaki Date: Thu, 8 Jun 2023 01:26:03 +0100 Subject: [PATCH 2/2] Fix tests --- testing/comicvine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/comicvine.py b/testing/comicvine.py index a4efb53..562c49d 100644 --- a/testing/comicvine.py +++ b/testing/comicvine.py @@ -209,7 +209,7 @@ cv_md = comicapi.genericmetadata.GenericMetadata( month=date[1], year=date[2], day=date[0], - issue_count=None, + issue_count=6, volume=None, genre=None, language=None,