From bc9e4a30cb5f0f2799c4b91564b4a8c584b9f388 Mon Sep 17 00:00:00 2001 From: David Torosyan Date: Fri, 11 Aug 2017 23:19:41 -0700 Subject: [PATCH] Fix thepiratebay.xml for General Hospital (#1647) * Fix thepiratebay.xml for General Hospital * Add comment --- src/Jackett/Definitions/thepiratebay.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Definitions/thepiratebay.yml b/src/Jackett/Definitions/thepiratebay.yml index c0a4facdc..7c813437b 100755 --- a/src/Jackett/Definitions/thepiratebay.yml +++ b/src/Jackett/Definitions/thepiratebay.yml @@ -73,7 +73,12 @@ settings: [] search: - path: "{{if .Query.Keywords}}/search/{{ .Query.Keywords}}/0/99/{{range .Categories }}{{.}}{{end}}{{else}}/recent{{end}}" + path: "{{if .Query.Keywords}}/search/{{ .Keywords}}/0/99/{{range .Categories }}{{.}}{{end}}{{else}}/recent{{end}}" + keywordsfilters: + # currently, the only uploader for General Hospital puts a space between season and episode + # this filter searches both formats, so "General Hospital S01E02" becomes "General Hospital S01E02 | (S01 E02)" + - name: re_replace + args: ["General Hospital S(\\d{2,3})E(\\d{2,3})", "$0 | \\(S$1 E$2\\)"] rows: selector: "#searchResult tbody tr:has(td.vertTh)" fields: