mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 14:05:01 +03:00
minor correction
This commit is contained in:
parent
44e60c3e21
commit
0f33e471ad
@ -14,7 +14,7 @@ def yizhibo_download(url, output_dir = '.', merge = True, info_only = False, **k
|
||||
if (error != 1):
|
||||
raise ValueError("Error : {}".format(error))
|
||||
|
||||
data = json.loads(content)#['data']
|
||||
data = json.loads(content)
|
||||
title = data.get('data')['live_title']
|
||||
if (title == ''):
|
||||
title = data.get('data')['nickname']
|
||||
|
Loading…
Reference in New Issue
Block a user