From 02233d8b87cd99a87b861cef0c2a6c5e0b8a633e Mon Sep 17 00:00:00 2001 From: Randark_JMT Date: Sun, 27 Feb 2022 18:07:41 +0800 Subject: [PATCH] Bug Fixed --- download.py | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/download.py b/download.py index b6afbbf..720e271 100644 --- a/download.py +++ b/download.py @@ -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) # 解析索引文件 diff --git a/main.py b/main.py index b49875d..0114bac 100644 --- a/main.py +++ b/main.py @@ -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