fix: 大小写转换写入json_data

This commit is contained in:
TachibanaKimika
2023-08-06 16:00:06 +08:00
parent e23a25b9b7
commit b00c9a2587

View File

@@ -120,10 +120,6 @@ def get_data_from_json(
series = json_data.get('series') series = json_data.get('series')
year = json_data.get('year') year = json_data.get('year')
if conf.number_uppercase():
number = number.upper()
if json_data.get('cover_small'): if json_data.get('cover_small'):
cover_small = json_data.get('cover_small') cover_small = json_data.get('cover_small')
else: else:
@@ -169,6 +165,10 @@ def get_data_from_json(
cover_small = tmpArr[0].strip('\"').strip('\'') cover_small = tmpArr[0].strip('\"').strip('\'')
# ====================处理异常字符 END================== #\/:*?"<>| # ====================处理异常字符 END================== #\/:*?"<>|
# 处理大写
if conf.number_uppercase():
json_data['number'] = number.upper()
# 返回处理后的json_data # 返回处理后的json_data
json_data['title'] = title json_data['title'] = title
json_data['original_title'] = title json_data['original_title'] = title