fix TR模块报错找不到_protocol属性

v2.5.9引入的bug
This commit is contained in:
景大侠
2025-07-07 17:05:28 +08:00
parent c8bd9cb716
commit f93a1540af

View File

@@ -25,7 +25,7 @@ class Transmission:
若不设置参数,则创建配置文件设置的下载器
"""
if host and port:
self._protocol, self._host, self._port = kwargs.get("protocol", self._protocol), host, port
self._protocol, self._host, self._port = kwargs.get("protocol", "http"), host, port
elif host:
result = UrlUtils.parse_url_params(url=host)
if result: