From e945543450d0d7c1a9294b4f6949637e636911a5 Mon Sep 17 00:00:00 2001 From: hect0x7 <93357912+hect0x7@users.noreply.github.com> Date: Mon, 20 Nov 2023 22:12:45 +0800 Subject: [PATCH] rename --- src/jmcomic/jm_toolkit.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jmcomic/jm_toolkit.py b/src/jmcomic/jm_toolkit.py index 880daf61..b8ae517b 100644 --- a/src/jmcomic/jm_toolkit.py +++ b/src/jmcomic/jm_toolkit.py @@ -283,7 +283,7 @@ class JmPageTool: r'' ) - # 收藏页面的文件夹收藏总数 + # 收藏夹的收藏总数 pattern_html_favorite_total = compile(r' : (\d+)[^/]*/\D*(\d+)') # 所有的收藏夹 @@ -333,16 +333,16 @@ def parse_html_to_favorite_page(cls, html: str) -> JmFavoritePage: '未匹配到收藏夹的本子总数', )) - # 收藏页面的本子结果 + # 收藏夹的本子结果 content = cls.pattern_html_favorite_content.findall(html) content = [ (aid, {'name': atitle}) for aid, atitle in content ] - # 匹配文件夹列表 + # 匹配收藏夹列表 p1, p2 = cls.pattern_html_favorite_folder_list - folder_list_text = PatternTool.require_match(html, p1, '未匹配到文件夹列表') + folder_list_text = PatternTool.require_match(html, p1, '未匹配到收藏夹列表') folder_list_raw = p2.findall(folder_list_text) folder_list = [{'name': fname, 'FID': fid} for fid, fname in folder_list_raw] @@ -406,8 +406,8 @@ def parse_api_to_favorite_page(cls, data: DictModel) -> JmFavoritePage: "FID": "123", "1": "456", "UID": "456", - "2": "文件夹名", - "name": "文件夹名" + "2": "收藏夹名", + "name": "收藏夹名" } ], "total": "87",