Merge pull request #374 from Feng4/patch-3

解决cover_small导致程序正常刮削问题
This commit is contained in:
Yoshiko2
2020-12-19 21:56:42 +08:00
committed by GitHub

View File

@@ -125,7 +125,9 @@ def get_data_from_json(file_number, filepath, conf: config.Config): # 从JSON
if json_data.get('cover_small') == None: if json_data.get('cover_small') == None:
cover_small = '' cover_small = ''
else:
cover_small = json_data.get('cover_small')
imagecut = json_data.get('imagecut') imagecut = json_data.get('imagecut')
tag = str(json_data.get('tag')).strip("[ ]").replace("'", '').replace(" ", '').split(',') # 字符串转列表 @ tag = str(json_data.get('tag')).strip("[ ]").replace("'", '').replace(" ", '').split(',') # 字符串转列表 @
actor = str(actor_list).strip("[ ]").replace("'", '').replace(" ", '') actor = str(actor_list).strip("[ ]").replace("'", '').replace(" ", '')