Skip to content

Commit

Permalink
feat: remove domains tag
Browse files Browse the repository at this point in the history
There is a tracker filter built into QBT that works just the same. I don't see a need to have this as a tag since we also have the `site` tag.
  • Loading branch information
onedr0p authored Oct 7, 2024
1 parent 414d8fc commit da4b3da
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions qbtools/commands/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"not-working",
"unregistered",
"tracker-down",
"domain:",
"site:",
]

Expand Down Expand Up @@ -89,8 +88,7 @@ def __init__(app, logger):
continue
url = filtered[0].url

domain = extractTLD(url).registered_domain
tracker = trackers.get(domain)
tracker = trackers.get(extractTLD(url).registered_domain)

if app.added_on:
added_on = datetime.fromtimestamp(t.added_on)
Expand Down Expand Up @@ -128,9 +126,6 @@ def __init__(app, logger):
else:
tags_to_add.append(f"site:unmapped")

if app.domains:
tags_to_add.append(f"domain:{domain}")

if (app.unregistered or app.tracker_down or app.not_working) and filtered:
tracker_messages = [z.msg.upper() for z in filtered]
if app.unregistered and any(
Expand Down Expand Up @@ -224,9 +219,6 @@ def add_arguments(command, subparser):
action="store_true",
help="Tag torrents with added date (last 24h, 7 days, 30 days, etc)",
)
parser.add_argument(
"--domains", action="store_true", help="Tag torrents with tracker domains"
)
parser.add_argument(
"--duplicates",
action="store_true",
Expand Down

0 comments on commit da4b3da

Please sign in to comment.