Skip to content

Commit

Permalink
update: mangabz section show reversed;
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoneri committed Sep 30, 2024
1 parent dac11d1 commit d0be027
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ComicSpider/spiders/mangabz.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def frame_section(self, response):
example_s = ' -{}、【{}】'
self.say(example_s.format('序号', '章节') + '<br>')
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]
Expand Down
2 changes: 2 additions & 0 deletions GUI/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('<br>' + self.res.mangabz_desc, color='purple'))

def set_completer(self):
idx = self.chooseBox.currentIndex()
Expand Down
1 change: 1 addition & 0 deletions assets/res/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class GUI:
jm_bookid_support = "支持多车号输入(检测十进制数字),例如`123456,654321,114514`(逗号分隔)<br>"
wnacg_run_slow_in_cn_tip = "wancg 国内源偶尔会很慢,或者抽风,假如报错的话 <br>" + \
"网络问题如 [Errno 11001] / `ReadTimeout` 一般重启就好了,一直出现同一种错误的话 加群反映/提issue<br>"
mangabz_desc = "Māngabz 使用源为iphone网页版,逆天章节只有数字,例如第一卷和第一话都是1,需要根据相邻章节自己鉴别"
check_ehetai = "正在检测当前环境能否访问`exhentai`中..."
check_mangabz = "正在检测当前环境能否访问`Māngabz`中..."
checkisopen_text_change = "现在点击立刻打开存储目录"
Expand Down
1 change: 1 addition & 0 deletions assets/zh_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class GUI:
jm_bookid_support = "支持多车号输入(检测十进制数字),例如`123456,654321,114514`(逗号分隔)<br>"
wnacg_run_slow_in_cn_tip = "wancg 国内源偶尔会很慢,或者抽风,假如报错的话 <br>" + \
"网络问题如 [Errno 11001] / `ReadTimeout` 一般重启就好了,一直出现同一种错误的话 加群反映/提issue<br>"
mangabz_desc = "Māngabz 使用源为iphone网页版,逆天章节只有数字,例如第一卷和第一话都是1,需要根据相邻章节自己鉴别"
check_ehetai = "正在检测当前环境能否访问`exhentai`中..."
check_mangabz = "正在检测当前环境能否访问`Māngabz`中..."
checkisopen_text_change = "现在点击立刻打开存储目录"
Expand Down

0 comments on commit d0be027

Please sign in to comment.