1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 02:52:20 -05:00

Merge pull request #1275 from Captsha/patch-2

Improve code check for list comprehensions on subtitle
This commit is contained in:
Alexandre Beloin 2015-02-15 18:21:11 -05:00
commit 9321b71ac1

View File

@ -71,7 +71,7 @@ def subtitlesLanguages(video_path):
subtitles = video.scan() subtitles = video.scan()
languages = set() languages = set()
for subtitle in subtitles: for subtitle in subtitles:
if subtitle.language: if subtitle.language and subtitle.language.alpha2:
languages.add(subtitle.language.alpha2) languages.add(subtitle.language.alpha2)
else: else:
languages.add(SINGLE) languages.add(SINGLE)