fix extraction of subtitle stream without language tag

This commit is contained in:
Roderick van Domburg 2014-08-01 14:15:43 +02:00
parent 3eb045690f
commit 8d9d7cc298

View file

@ -401,7 +401,10 @@ def extract_subs(file, newfilePath, bitbucket):
num = len(subStreams)
for n in range(num):
sub = subStreams[n]
lan = sub["tags"]["language"]
try:
lan = sub["tags"]["language"]
except:
lan = "unk"
if num == 1:
outputFile = os.path.join(subdir, "%s.srt" %(name))