From 5aa15f2763f8354a313b5268d41d4bb55285b30a Mon Sep 17 00:00:00 2001 From: InsertDisc <31751462+InsertDisc@users.noreply.github.com> Date: Fri, 3 May 2024 13:44:11 -0400 Subject: [PATCH] Accompanying raw regex update --- vars.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars.py b/vars.py index 44ebdf1..0f83164 100644 --- a/vars.py +++ b/vars.py @@ -72,7 +72,7 @@ def __init__(self, ratingKey, title, added, released, size): class itemBase: def __init__(self, title, date, details): - self.title = re.sub("\s\(.*?\)","", title) + self.title = re.sub(r"\s\(.*?\)","", title) self.date = datetime.datetime.strptime(date, '%Y-%m-%d').date() self.details = details @@ -605,7 +605,7 @@ def get_show_name(self, rating_key): values = data['MediaContainer']['Metadata'] for result in values: title = result['title'] - title = re.sub("\s\(.*?\)","", title) + title = re.sub(r"\s\(.*?\)","", title) return title else: return f"Error: {response.status_code} - {response.text}"