don't crash on subtitle streams of unknown language
This commit is contained in:
@@ -66,7 +66,12 @@ for i in streams:
|
||||
matched=False
|
||||
except:
|
||||
pass
|
||||
out=str(i["index"])+" "+i["codec_type"]+" "+i["codec_name"]+" "+i["tags"]["language"]
|
||||
try:
|
||||
out=str(i["index"])+" "+i["codec_type"]+" "+i["codec_name"]+" "+i["tags"]["language"]
|
||||
except KeyError:
|
||||
out=str(i["index"])+" "+i["codec_type"]+" "+i["codec_name"]+" unk"
|
||||
if sub_lang!="":
|
||||
matched=False
|
||||
if i["disposition"]["default"]==1:
|
||||
out=out+" default"
|
||||
if i["disposition"]["hearing_impaired"]==1:
|
||||
|
||||
Reference in New Issue
Block a user