Skip to content

Commit

Permalink
Accompanying raw regex update
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertDisc authored May 3, 2024
1 parent d0277d6 commit 5aa15f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 5aa15f2

Please sign in to comment.