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:
commit
9321b71ac1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user