fix #448 TR限速不生效的问题

This commit is contained in:
jxxghp
2023-09-05 16:35:15 +08:00
parent 6a08b4ba7f
commit c69762d4c9
3 changed files with 23 additions and 21 deletions

View File

@ -339,6 +339,7 @@ class Qbittorrent(metaclass=Singleton):
try:
self.qbc.transfer.upload_limit = int(upload_limit)
self.qbc.transfer.download_limit = int(download_limit)
return True
except Exception as err:
logger.error(f"设置速度限制出错:{err}")
return False