Skip to content

Commit

Permalink
Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Randark-JMT committed Feb 27, 2022
1 parent f3ab4b0 commit 02233d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion download.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def download_manga_episode(episode_id: int, root_path: str, log_out): # ID-索
res = requests.post(url_GetImageIndex, json.dumps({"ep_id": episode_id}), headers=headers)
data = json.loads(res.text)
index_url = 'https://manga.hdslb.com' + data['data']['path']
log_out('获取索引文件cdn位置:' + index_url)
# log_out('获取索引文件cdn位置:' + index_url)
# 获取索引文件
res = requests.get(index_url)
# 解析索引文件
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
@Slot()
def check_purchase_staus(self): # 检查购买情况
from download import get_purchase_status
manga_id = self.textEdit_2.toPlainText()
manga_id = str(self.textEdit_2.toPlainText()).replace("\n", "").replace(" ", "")
if manga_id == "" or not manga_id.isnumeric():
self.textBrowser.append("漫画ID输入错误,请核对后再次执行")
return None
Expand Down

0 comments on commit 02233d8

Please sign in to comment.