From 04b3b6b4ab4955ee0ec542a717819ce981b14208 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sun, 17 Dec 2023 19:14:38 -0800 Subject: [PATCH] Do not normalize series_name when a literal search is requested --- comictalker/talkers/comicvine.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index b6b9121..11fdb4b 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -248,7 +248,12 @@ class ComicVineTalker(ComicTalker): series_match_thresh: int = 90, ) -> list[ComicSeries]: # Sanitize the series name for comicvine searching, comicvine search ignore symbols - search_series_name = utils.sanitize_title(series_name, literal) + search_series_name = utils.sanitize_title(series_name, basic=literal) + + # A literal search was asked for, do not sanitize + if literal: + search_series_name = series_name + logger.info(f"{self.name} searching: {search_series_name}") # Before we search online, look in our cache, since we might have done this same search recently