minor correction

This commit is contained in:
Valdemar Erk 2016-12-10 12:26:06 +01:00
parent 44e60c3e21
commit 0f33e471ad

View File

@ -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']