diff --git a/src/tvsort_id.py b/src/tvsort_id.py index 6386fcd..e04dddd 100644 --- a/src/tvsort_id.py +++ b/src/tvsort_id.py @@ -73,7 +73,7 @@ def split_file_name(filename): def showname_encoder(showname): """ encodes showname for best possible match """ # tvmaze doesn't like years in showname - showname = showname.strip().rstrip('.') + showname = showname.strip().rstrip('.').rstrip('-').strip() year_pattern = re.compile(r'\(?[0-9]{4}\)?') year = year_pattern.findall(showname) if year: