py3 comparing int/str
This commit is contained in:
parent
67d30ef88e
commit
ac55ef0fbd
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def parse_item_files(files):
|
||||||
subtitle_files = [file for file in version_files[version_key] if file['extension'] == 'srt']
|
subtitle_files = [file for file in version_files[version_key] if file['extension'] == 'srt']
|
||||||
for subtitle_language in sorted(
|
for subtitle_language in sorted(
|
||||||
list(set([file['language'] for file in subtitle_files])),
|
list(set([file['language'] for file in subtitle_files])),
|
||||||
key=lambda x: LANGUAGES.index(x) if x in LANGUAGES else x
|
key=lambda x: '%d' % LANGUAGES.index(x) if x in LANGUAGES else x
|
||||||
):
|
):
|
||||||
language_files = [file for file in subtitle_files if file['language'] == subtitle_language]
|
language_files = [file for file in subtitle_files if file['language'] == subtitle_language]
|
||||||
if len(subtitle_files) == len(parts):
|
if len(subtitle_files) == len(parts):
|
||||||
|
|
Loading…
Reference in a new issue