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(qbtools): bhd stream truncated #76

Merged
merged 1 commit into from
Oct 7, 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
8 changes: 5 additions & 3 deletions qbtools/commands/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"UNKNOWN TORRENT",
"TRUMP",
"RETITLED",
"TRUNCATED",
"INFOHASH NOT FOUND", # blutopia
"TORRENT HAS BEEN DELETED", # blutopia
"DEAD",
Expand Down Expand Up @@ -59,7 +58,10 @@ def __init__(app, logger):
content_paths = []

filtered_torrents = app.client.torrents.info()

trackers = app.config.get("trackers", [])
unregistered_matches = app.config.get("unregistered_matches", UNREGISTERED_MATCHES)
maintenance_matches = app.config.get("maintenance_matches", MAINTENANCE_MATCHES)

exclude_categories = [i for s in app.exclude_category for i in s]
if exclude_categories:
Expand Down Expand Up @@ -136,11 +138,11 @@ def __init__(app, logger):
if not any(s.status == TrackerStatus.WORKING for s in filtered_trackers):
tracker_messages = [z.msg.upper() for z in filtered_trackers]
if app.unregistered and any(
x in msg for msg in tracker_messages for x in UNREGISTERED_MATCHES
x in msg for msg in tracker_messages for x in unregistered_matches
):
tags_to_add.append("unregistered")
elif app.tracker_down and any(
x in msg for msg in tracker_messages for x in MAINTENANCE_MATCHES
x in msg for msg in tracker_messages for x in maintenance_matches
):
tags_to_add.append("tracker-down")
elif app.not_working:
Expand Down
Loading