mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 14:05:01 +03:00
Print audiolang in json output
This commit is contained in:
parent
1497d713a0
commit
8799197bef
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user