movie.py: typo
This commit is contained in:
parent
8e1261bc9d
commit
3e269531e5
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ def parse_path(path):
|
|||
data['title'] = title[:-len(match.group(0))] if match else title
|
||||
data['year'] = match.group(0)[2:-1] if match else None
|
||||
file_title = re.sub('^\.|/|:', '_', data['title'])
|
||||
title = re.sub('^' + re.escape(file_title), '', title)
|
||||
file = re.sub('^' + re.escape(file_title), '', file)
|
||||
else:
|
||||
data['title'] = data['year'] = None
|
||||
parts = re.split('(?<!\s)\.(?=\w)', file)
|
||||
|
|
Loading…
Reference in a new issue