mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-20 23:14:32 +08:00
fix transmission missing limit fields
This commit is contained in:
@@ -267,8 +267,10 @@ class TransmissionModule(_ModuleBase, _DownloaderBase[Transmission]):
|
||||
兼容 transmission-rpc 新旧字段名。
|
||||
"""
|
||||
for attr_name in attr_names:
|
||||
if hasattr(torrent_data, attr_name):
|
||||
try:
|
||||
return getattr(torrent_data, attr_name)
|
||||
except (AttributeError, KeyError, TypeError, ValueError):
|
||||
continue
|
||||
return None
|
||||
|
||||
def __get_torrent_progress(torrent_data) -> float:
|
||||
|
||||
Reference in New Issue
Block a user