Private GIT

Skip to content
Snippets Groups Projects
Commit 9321b71a authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

Merge pull request #1275 from Captsha/patch-2

Improve code check for list comprehensions on subtitle
parents a78344b6 98c479cf
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment