mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-12-10 13:56:13 +08:00
fix(share_limits): skip processing if no action configured
Only process torrents that have reached their seed limits if cleanup is enabled or if an upload speed limit change is configured. This prevents unnecessary logging and processing when no action is defined.
This commit is contained in:
parent
2a4fb0613c
commit
3901bf6524
2 changed files with 5 additions and 3 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
4.6.5-develop7
|
||||
4.6.5-develop8
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ class ShareLimits:
|
|||
or check_limit_upload_speed
|
||||
or share_limits_not_yet_tagged
|
||||
or check_multiple_share_limits_tag
|
||||
or tor_reached_seed_limit
|
||||
or (tor_reached_seed_limit and (group_config["cleanup"] or group_config["upload_speed_on_limit_reached"] != 0))
|
||||
) and hash_not_prev_checked:
|
||||
if (
|
||||
(
|
||||
|
|
@ -327,7 +327,9 @@ class ShareLimits:
|
|||
)
|
||||
or share_limits_not_yet_tagged
|
||||
or check_multiple_share_limits_tag
|
||||
or tor_reached_seed_limit
|
||||
or (
|
||||
tor_reached_seed_limit and (group_config["cleanup"] or group_config["upload_speed_on_limit_reached"] != 0)
|
||||
)
|
||||
):
|
||||
logger.print_line(logger.insert_space(f"Torrent Name: {t_name}", 3), self.config.loglevel)
|
||||
logger.print_line(logger.insert_space(f"Tracker: {tracker['url']}", 8), self.config.loglevel)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue