From a5e2e6ef60b8b751e3fa5ba949054e2ee5bde17b Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 10 Apr 2018 14:49:19 +0200 Subject: [PATCH] The Pirate Bay: add parent + sub category --- src/Jackett.Common/Definitions/thepiratebay.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/thepiratebay.yml b/src/Jackett.Common/Definitions/thepiratebay.yml index e5e5a8189..bd1c25017 100644 --- a/src/Jackett.Common/Definitions/thepiratebay.yml +++ b/src/Jackett.Common/Definitions/thepiratebay.yml @@ -100,7 +100,13 @@ rows: selector: "#searchResult tbody tr:has(td.vertTh)" fields: - category: + category: # parent category + selector: td:nth-child(1) a:first-child + attribute: href + filters: + - name: split + args: [ "/", -1 ] + category: # sub category selector: td:nth-child(1) a:last-child attribute: href filters: