mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[json_output] use dash_streams only if it exists
This commit is contained in:
parent
a9b02548af
commit
8fbd5f3982
@ -11,7 +11,11 @@ def output(video_extractor, pretty_print=True):
|
||||
out['title'] = ve.title
|
||||
out['site'] = ve.name
|
||||
out['streams'] = ve.streams
|
||||
out['streams'].update(ve.dash_streams)
|
||||
try:
|
||||
if ve.dash_streams:
|
||||
out['streams'].update(ve.dash_streams)
|
||||
except AttributeError:
|
||||
pass
|
||||
try:
|
||||
if ve.audiolang:
|
||||
out['audiolang'] = ve.audiolang
|
||||
@ -60,4 +64,3 @@ def download_urls(urls=None, title=None, ext=None, total_size=None, refer=None):
|
||||
ve.streams = {}
|
||||
ve.streams['__default__'] = stream
|
||||
output(ve)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user