mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Merge pull request #1275 from Captsha/patch-2
Improve code check for list comprehensions on subtitle
This commit is contained in:
commit
9321b71ac1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user