From 14137c30c887dc785daf64f07ecd0d0ccd5c5f00 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 31 May 2013 15:57:42 +0200 Subject: [PATCH] can't access set via index --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index ed44835..6229da3 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -158,7 +158,7 @@ def parse_item_files(files): for extension in EXTENSIONS['subtitle']: subtitle_files = [file for file in version_files[version_key] if file['extension'] == extension] subtitle_languages = set([file['language'] for file in subtitle_files]) - if len(subtitle_languages) == 1 and subtitle_languages[0] == LANGUAGES[0]: + if len(subtitle_languages) == 1 and LANGUAGES[0] in subtitle_languages: for subtitle_file in subtitle_files: subtitle_file['normalizedPath'] = format_path(dict(subtitle_file, **{'language': None})) # return data