This commit is contained in:
bakerboy448 2023-04-04 21:49:09 -05:00 committed by GitHub
parent d67a7bf941
commit 43aebb7e32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -553,8 +553,6 @@ class Qbt:
min_seeding_time = tracker["min_seeding_time"]
elif nohardlinks[category]["min_seeding_time"]:
min_seeding_time = nohardlinks[category]["min_seeding_time"]
else:
min_seeding_time = min_seeding_time
# Determine max_ratio.
# If only tracker setting is set, use tracker's max_ratio
# If only nohardlinks category setting is set, use nohardlinks category's max_ratio
@ -565,8 +563,6 @@ class Qbt:
max_ratio = tracker["max_ratio"]
elif nohardlinks[category]["max_ratio"]:
max_ratio = nohardlinks[category]["max_ratio"]
else:
max_ratio = max_ratio
# Determine max_seeding_time.
# If only tracker setting is set, use tracker's max_seeding_time
# If only nohardlinks category setting is set, use nohardlinks category's max_seeding_time
@ -580,8 +576,6 @@ class Qbt:
max_seeding_time = tracker["max_seeding_time"]
elif nohardlinks[category]["max_seeding_time"]:
max_seeding_time = nohardlinks[category]["max_seeding_time"]
else:
max_seeding_time = max_seeding_time
# Will only tag new torrents that don't have nohardlinks_tag tag
if self.config.nohardlinks_tag not in torrent.tags:
add_tag_no_hl(add_tag=True)