From 378d5eeaa4f77d4ebf42f10ae931a2b3135102e1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 25 Feb 2023 14:52:43 +0200 Subject: [PATCH] torrent9: fix titles with broken HTML highlight (#14091) Related to #11199 --- src/Jackett.Common/Definitions/torrent9.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/torrent9.yml b/src/Jackett.Common/Definitions/torrent9.yml index 0fbc1f6a3..288a91aa1 100644 --- a/src/Jackett.Common/Definitions/torrent9.yml +++ b/src/Jackett.Common/Definitions/torrent9.yml @@ -139,8 +139,14 @@ search: i[class="fa fa-gamepad"]: jeux-pc i[class="fa fa-laptop"]: logiciels i[class="fa fa-book"]: ebook - title_phase1: + title_default: selector: td:nth-child(1) a + title_optional: + selector: td:nth-child(1) a[title] + attribute: title + optional: true + title_phase1: + text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}" filters: - name: re_replace args: ["(?i)\\b(FRENCH|MULTI|TRUEFRENCH|VOSTFR|SUBFRENCH)\\b(.+?)(\\b(19|20\\d{2})\\b)$", "$3 $1$2"]