From d0be027a589e497c3eafa1bfc9a0352844bef9a5 Mon Sep 17 00:00:00 2001 From: json Date: Mon, 30 Sep 2024 22:29:13 +0800 Subject: [PATCH] update: mangabz section show reversed; --- ComicSpider/spiders/mangabz.py | 2 +- GUI/gui.py | 2 ++ assets/res/__init__.py | 1 + assets/zh_cn.py | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ComicSpider/spiders/mangabz.py b/ComicSpider/spiders/mangabz.py index 80cc5cd..d0adc7d 100644 --- a/ComicSpider/spiders/mangabz.py +++ b/ComicSpider/spiders/mangabz.py @@ -110,7 +110,7 @@ def frame_section(self, response): example_s = ' -{}、【{}】' self.say(example_s.format('序号', '章节') + '
') targets = response.xpath('//div[@class="detail-list-item"]/a') - for x, target in enumerate(targets): + for x, target in enumerate(reversed(targets)): section_url = rf"https://{domain}{target.xpath('./@href').get()}" section = "".join(target.xpath('./text()').get()).strip() frame_results[x + 1] = [section, section_url] diff --git a/GUI/gui.py b/GUI/gui.py index 3ae0aa8..eb1ce15 100644 --- a/GUI/gui.py +++ b/GUI/gui.py @@ -196,6 +196,8 @@ def chooseBox_changed_tips(self, index): elif index == 4: self.pageEdit.setDisabled(True) self.say(font_color(res.EHentai.GUIDE, color='purple')) + elif index == 5: + self.say(font_color('
' + self.res.mangabz_desc, color='purple')) def set_completer(self): idx = self.chooseBox.currentIndex() diff --git a/assets/res/__init__.py b/assets/res/__init__.py index 476d3d8..1edcd67 100644 --- a/assets/res/__init__.py +++ b/assets/res/__init__.py @@ -16,6 +16,7 @@ class GUI: jm_bookid_support = "支持多车号输入(检测十进制数字),例如`123456,654321,114514`(逗号分隔)
" wnacg_run_slow_in_cn_tip = "wancg 国内源偶尔会很慢,或者抽风,假如报错的话
" + \ "网络问题如 [Errno 11001] / `ReadTimeout` 一般重启就好了,一直出现同一种错误的话 加群反映/提issue
" + mangabz_desc = "Māngabz 使用源为iphone网页版,逆天章节只有数字,例如第一卷和第一话都是1,需要根据相邻章节自己鉴别" check_ehetai = "正在检测当前环境能否访问`exhentai`中..." check_mangabz = "正在检测当前环境能否访问`Māngabz`中..." checkisopen_text_change = "现在点击立刻打开存储目录" diff --git a/assets/zh_cn.py b/assets/zh_cn.py index 476d3d8..1edcd67 100644 --- a/assets/zh_cn.py +++ b/assets/zh_cn.py @@ -16,6 +16,7 @@ class GUI: jm_bookid_support = "支持多车号输入(检测十进制数字),例如`123456,654321,114514`(逗号分隔)
" wnacg_run_slow_in_cn_tip = "wancg 国内源偶尔会很慢,或者抽风,假如报错的话
" + \ "网络问题如 [Errno 11001] / `ReadTimeout` 一般重启就好了,一直出现同一种错误的话 加群反映/提issue
" + mangabz_desc = "Māngabz 使用源为iphone网页版,逆天章节只有数字,例如第一卷和第一话都是1,需要根据相邻章节自己鉴别" check_ehetai = "正在检测当前环境能否访问`exhentai`中..." check_mangabz = "正在检测当前环境能否访问`Māngabz`中..." checkisopen_text_change = "现在点击立刻打开存储目录"