From 5fcde29ca5ec8b18ef37f07d5b7e815ef55d4891 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Fri, 30 Aug 2024 08:52:24 -0400 Subject: [PATCH] fix: add `added 180` to tag (#60) --- qbtools/commands/tagging.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qbtools/commands/tagging.py b/qbtools/commands/tagging.py index a27d89b..b6642a0 100755 --- a/qbtools/commands/tagging.py +++ b/qbtools/commands/tagging.py @@ -39,7 +39,6 @@ "trumped", "torrent existiert nicht", "other", - "i'm sorry dave, i can't do that", # weird stuff from racingforme "002: invalid infohash", ] @@ -95,10 +94,12 @@ def __init__(args, logger): tags_to_add.append("added:24h") elif diff.days <= 7: tags_to_add.append("added:7d") - elif diff.days <= 29: + elif diff.days <= 30: tags_to_add.append("added:30d") - elif diff.days > 29: - tags_to_add.append("added:>30d") + elif diff.days <= 180: + tags_to_add.append("added:180d") + elif diff.days > 180: + tags_to_add.append("added:>180d") if args.last_activity: last_activity = datetime.fromtimestamp(t.last_activity) @@ -112,9 +113,9 @@ def __init__(args, logger): tags_to_add.append("activity:7d") elif diff.days <= 30: tags_to_add.append("activity:30d") - elif diff.days <= 179: + elif diff.days <= 180: tags_to_add.append("activity:180d") - elif diff.days > 179: + elif diff.days > 180: tags_to_add.append("activity:>180d") if args.sites: