mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-11-08 07:20:59 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
51eab237ee
commit
0a88e72c6d
1 changed files with 5 additions and 1 deletions
|
|
@ -144,7 +144,11 @@ def main():
|
|||
torrent_num_seeds_raw = []
|
||||
for torrent in qbt_client.torrents_info():
|
||||
torrent_share_ratio = qbt_client.torrents_properties(torrent["hash"])["share_ratio"]
|
||||
if torrent_on_monitored_drive(torrent) and torrent_age_satisfied(torrent) and torrent_share_ratio >= MIN_TORRENT_SHARE_RATIO:
|
||||
if (
|
||||
torrent_on_monitored_drive(torrent)
|
||||
and torrent_age_satisfied(torrent)
|
||||
and torrent_share_ratio >= MIN_TORRENT_SHARE_RATIO
|
||||
):
|
||||
torrent_hashes_raw.append(torrent["hash"])
|
||||
torrent_privacy_raw.append(is_torrent_public(torrent["hash"], setup=False) if PREFER_PRIVATE_TORRENTS else True)
|
||||
torrent_num_seeds_raw.append(torrent["num_complete"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue