From 2598fc546aeffd6fa21b984155838043c03cf029 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Fri, 12 May 2023 22:47:36 +0100 Subject: [PATCH] Use new xlate_int and xlate_float --- comictalker/talker_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comictalker/talker_utils.py b/comictalker/talker_utils.py index e81b37c..5da2d23 100644 --- a/comictalker/talker_utils.py +++ b/comictalker/talker_utils.py @@ -44,8 +44,8 @@ def map_comic_issue_to_metadata( metadata.series = utils.xlate(issue_results.series.name) metadata.issue = IssueString(issue_results.issue_number).as_string() - metadata.volume = utils.xlate(issue_results.series.volume, True) - metadata.volume_count = utils.xlate(issue_results.series.count_of_volumes, True) + metadata.volume = utils.xlate_int(issue_results.series.volume) + metadata.volume_count = utils.xlate_int(issue_results.series.count_of_volumes) if issue_results.name: metadata.title = utils.xlate(issue_results.name) @@ -93,7 +93,7 @@ def map_comic_issue_to_metadata( else: metadata.manga = "Unknown" if issue_results.rating: - metadata.critical_rating = utils.xlate(issue_results.rating, is_float=True) + metadata.critical_rating = utils.xlate_float(issue_results.rating) return metadata