From ce6140ad1b90278ae2e359bbfc079edbc43421ea Mon Sep 17 00:00:00 2001 From: hacker94 <87306223@163.com> Date: Wed, 30 Dec 2020 01:41:09 +0800 Subject: [PATCH] strip actor_list --- core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core.py b/core.py index 080b32e..b61b15b 100755 --- a/core.py +++ b/core.py @@ -113,6 +113,7 @@ def get_data_from_json(file_number, filepath, conf: config.Config): # 从JSON title = json_data.get('title') actor_list = str(json_data.get('actor')).strip("[ ]").replace("'", '').split(',') # 字符串转列表 + actor_list = [actor.strip() for actor in actor_list] # 去除空白 release = json_data.get('release') number = json_data.get('number') studio = json_data.get('studio')