Skip to content

The only downloader you need. 下载器的集大成者。

修复 Python 3.11 跑不起来的问题

XiaoYouChR612c22464511
diff --git a/app/common/methods.py b/app/common/methods.py
index 8d81e5f8..538f176b 100644
--- a/app/common/methods.py
+++ b/app/common/methods.py
@@ -223,7 +223,7 @@ def getLinkInfo(url: str, headers: dict, fileName: str = "", verify: bool = cfg.
if right != "*":
fileSize = int(right)
- logger.info(f"content-range: {head["content-range"]}, fileSize: {fileSize}, content-length: {head["content-length"]}")
+ logger.info(f"content-range: {head['content-range']}, fileSize: {fileSize}, content-length: {head['content-length']}")
elif "content-length" in head:
fileSize = int(head["content-length"])