From 5e989bcb1940d8a2f3056473f09d9bf56a4ee3cc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 17 Feb 2013 20:09:48 +0530 Subject: [PATCH] fix movie.parse_path, set language --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index 9f51194..42636fe 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -298,7 +298,7 @@ def parse_path(path, directory_key='director'): while data['partTitle'] and len(parts) and not re.search('^[a-z]{2}$', parts[0]): data['partTitle'] += '.%s' % parts.pop(0) # language - language = parts.pop(0) if len(parts) and re.search('^[a-z]{2}$', parts[0]) else None + data['language'] = parts.pop(0) if len(parts) and re.search('^[a-z]{2}$', parts[0]) else None # extension data['extension'] = re.sub('^mpeg$', 'mpg', extension.lower()) if extension else None # type