handle unknown audio language
This commit is contained in:
@@ -52,7 +52,12 @@ for i in streams:
|
||||
out=out+" "+str(int(i["tags"]["BPS"])/1000)
|
||||
except KeyError:
|
||||
out=out+" unknown"
|
||||
out=out+" "+i["tags"]["language"]
|
||||
try:
|
||||
out=out+" "+i["tags"]["language"]
|
||||
except KeyError:
|
||||
out=out+" unk"
|
||||
if audio_lang!="":
|
||||
matched=False
|
||||
if i["disposition"]["default"]==1:
|
||||
out=out+" default"
|
||||
if matched==True:
|
||||
|
||||
Reference in New Issue
Block a user