1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -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()
languages = set()
for subtitle in subtitles:
if subtitle.language:
if subtitle.language and subtitle.language.alpha2:
languages.add(subtitle.language.alpha2)
else:
languages.add(SINGLE)