movie.py: typo

This commit is contained in:
rolux 2012-08-17 11:08:47 +02:00
parent 8e1261bc9d
commit 3e269531e5

View file

@ -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)