From ba14fab0a1c971404d9f26dd30c7b81ae0434f83 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Thu, 2 Feb 2017 18:56:36 +0100 Subject: [PATCH] Shareisland: rewrite season/episode information --- src/Jackett/Definitions/shareisland.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Jackett/Definitions/shareisland.yml b/src/Jackett/Definitions/shareisland.yml index b2453d6c4..8573c9406 100644 --- a/src/Jackett/Definitions/shareisland.yml +++ b/src/Jackett/Definitions/shareisland.yml @@ -73,6 +73,11 @@ search: path: / keywordsfilters: + # most ITA TV torrents are in XXxYY format, so we search without S/E prefixes and filter later + - name: re_replace + args: ["S0?(\\d{1,2})", " $1 "] + - name: re_replace + args: ["E(\\d{2,3})", " $1 "] - name: re_replace args: ["[^a-zA-Z0-9]+", "%25"] inputs: @@ -90,6 +95,12 @@ fields: title: selector: td.torrent_name > a + filters: + # normalize to SXXEYY format + - name: re_replace + args: ["(\\d{2})x(\\d{2})", "S$1E$2"] + - name: re_replace + args: ["(\\d{1})x(\\d{2})", "S0$1E$2"] category: selector: div.category_image > a attribute: href