mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 16:53:56 +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):
|
if (error != 1):
|
||||||
raise ValueError("Error : {}".format(error))
|
raise ValueError("Error : {}".format(error))
|
||||||
|
|
||||||
data = json.loads(content)#['data']
|
data = json.loads(content)
|
||||||
title = data.get('data')['live_title']
|
title = data.get('data')['live_title']
|
||||||
if (title == ''):
|
if (title == ''):
|
||||||
title = data.get('data')['nickname']
|
title = data.get('data')['nickname']
|
||||||
|
Loading…
Reference in New Issue
Block a user