From d3f8443a15e595732138c2da42b0fb605b06a587 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 18 Aug 2012 21:35:58 +0200 Subject: [PATCH] movie.py: fix regexp --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index ceb8323..e6beeaa 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -122,7 +122,7 @@ def parse_path(path): match = re.search(' \(\d{4}(-(\d{4})?)?\)$', title) 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']) + file_title = re.sub('[/:]', '_', data['title']) file = re.sub('^' + re.escape(file_title), '', file) parts = re.split('(?