mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
Merge branch 'print-audiolang-in-json-output' of https://github.com/coslyk/you-get into coslyk-print-audiolang-in-json-output
This commit is contained in:
commit
6c87cbde10
@ -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