From e359abeec4bfed7b4ca042f05c3af34d06cf529e Mon Sep 17 00:00:00 2001 From: Steven Kreitzer Date: Mon, 7 Oct 2024 06:04:18 -0500 Subject: [PATCH] fix(qbtools): bhd stream truncated --- qbtools/commands/tagging.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qbtools/commands/tagging.py b/qbtools/commands/tagging.py index d91e507..93f16e7 100755 --- a/qbtools/commands/tagging.py +++ b/qbtools/commands/tagging.py @@ -28,7 +28,6 @@ "UNKNOWN TORRENT", "TRUMP", "RETITLED", - "TRUNCATED", "INFOHASH NOT FOUND", # blutopia "TORRENT HAS BEEN DELETED", # blutopia "DEAD", @@ -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: @@ -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: