more cleaning in showname_encoder
This commit is contained in:
parent
be4ffe1bc5
commit
677ed49fad
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue