fix README.md

This commit is contained in:
jxxghp
2023-10-07 04:01:21 -07:00
parent 00ecd7adc5
commit 78f0ac0042
4 changed files with 31 additions and 35 deletions

View File

@@ -211,6 +211,8 @@ class TransmissionModule(_ModuleBase):
下载器信息
"""
info = self.transmission.transfer_info()
if not info:
return schemas.DownloaderInfo()
return schemas.DownloaderInfo(
download_speed=info.download_speed,
upload_speed=info.upload_speed,