Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add added 180 to tag #60

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions qbtools/commands/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down Expand Up @@ -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)
Expand All @@ -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:
Expand Down
Loading