From b00c9a25875c5af4cb4ac8bd58926b66beab172c Mon Sep 17 00:00:00 2001 From: TachibanaKimika Date: Sun, 6 Aug 2023 16:00:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A7=E5=B0=8F=E5=86=99=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E5=86=99=E5=85=A5json=5Fdata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scraper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scraper.py b/scraper.py index 0bf4cc1..c5e0d82 100644 --- a/scraper.py +++ b/scraper.py @@ -120,10 +120,6 @@ def get_data_from_json( series = json_data.get('series') year = json_data.get('year') - - if conf.number_uppercase(): - number = number.upper() - if json_data.get('cover_small'): cover_small = json_data.get('cover_small') else: @@ -169,6 +165,10 @@ def get_data_from_json( cover_small = tmpArr[0].strip('\"').strip('\'') # ====================处理异常字符 END================== #\/:*?"<>| + # 处理大写 + if conf.number_uppercase(): + json_data['number'] = number.upper() + # 返回处理后的json_data json_data['title'] = title json_data['original_title'] = title