From 467c1d81e0c13ccd27b72eb8ed223b7983b9033c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 23 Apr 2024 06:21:29 +1200 Subject: [PATCH] torrentcore: add search error handling --- src/Jackett.Common/Definitions/torrentcore.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Jackett.Common/Definitions/torrentcore.yml b/src/Jackett.Common/Definitions/torrentcore.yml index 5bcdae96b..288d9f0ae 100644 --- a/src/Jackett.Common/Definitions/torrentcore.yml +++ b/src/Jackett.Common/Definitions/torrentcore.yml @@ -64,6 +64,11 @@ search: paths: - path: "{{ if .Keywords }}search?s={{ .Keywords }}{{ else }}index{{ end }}" # search is an exact match, there are no wild cards, or +word or AND/OR, and spaces and dots are treated uniquely + error: + - selector: :root:contains("Connection failed") + message: + text: "Connection failed: Connection refused" + - selector: :root:contains("[Anti-DDoS]") rows: selector: div.content font[color="purple"], div.content font[color="orange"]:has(a), div.content font[color="gray"], div.content font[color="white"]