Print audiolang in json output

This commit is contained in:
YK Liu 2017-02-20 15:09:38 +08:00
parent 1497d713a0
commit 8799197bef

View File

@ -11,6 +11,11 @@ def output(video_extractor, pretty_print=True):
out['title'] = ve.title
out['site'] = ve.name
out['streams'] = ve.streams
try:
if ve.audiolang:
out['audiolang'] = ve.audiolang
except NameError:
pass
if pretty_print:
print(json.dumps(out, indent=4, sort_keys=True, ensure_ascii=False))
else: