-
Notifications
You must be signed in to change notification settings - Fork 20.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
🏷️ 遇到了什么问题
数据获取问题(获取不到新闻、请求失败等)
🖥️ 使用环境
本地运行(直接在电脑上运行)
📝 详细描述问题
使用config.yaml配置ntfy_server_url时出现bug。
# main.py, line 184-187
# ntfy配置
config["NTFY_SERVER_URL"] = os.environ.get(
"NTFY_SERVER_URL", "https://ntfy.sh"
).strip() or webhooks.get("ntfy_server_url", "https://ntfy.sh")若环境变量NTFY_SERVER_URL为空,则无论webhooks.ntfy_server_url为任何值,config["NTFY_SERVER_URL"]均为"https://ntfy.sh"。
修改建议:
# ntfy配置
config["NTFY_SERVER_URL"] = os.environ.get(
"NTFY_SERVER_URL", ""
).strip() or webhooks.get("ntfy_server_url", "https://ntfy.sh")💻 系统信息
None
🔄 怎么重现这个问题
No response
✅ 期望的正常情况
No response
📋 错误信息
No response
⚙️ 相关配置
No response
📷 截图补充
No response
📎 其他补充信息
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working