From 436abe3defaa1fe84cd77243eeb809584c0b6f74 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 22 Aug 2012 12:31:16 +0200 Subject: [PATCH] movie.py: typo --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index a134f9f..837624f 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -125,7 +125,7 @@ def parse_item_files(files): main_files[version_key] = video_files if full[version_key] else [] # determine preferred subtitle language language[version_key] = None - subtitle_files = [file for file in version_files[version] if file['extension'] == 'srt'] + subtitle_files = [file for file in version_files[version_key] if file['extension'] == 'srt'] for subtitle_language in sorted( list(set([file['language'] for file in subtitle_files])), key=lambda x: LANGUAGES.index(x) if x in LANGUAGES else x