From 26933d9286dc275719fe3c3bd5954635bffec974 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Wed, 10 Jan 2018 16:38:19 +0100 Subject: [PATCH] Shareisland: try to fix title parsing --- src/Jackett.Common/Definitions/shareisland.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/shareisland.yml b/src/Jackett.Common/Definitions/shareisland.yml index aad0911f0..92e14b4a3 100644 --- a/src/Jackett.Common/Definitions/shareisland.yml +++ b/src/Jackett.Common/Definitions/shareisland.yml @@ -98,8 +98,17 @@ download: selector: a[href^="index.php?page=downloadcheck&id="] attribute: href - title: - selector: a[title][href^="index.php?page=torrent-details&id="] + title: # shortened title? + selector: a[href^="index.php?page=torrent-details"] + # normalize to SXXEYY format + filters: + - name: re_replace + args: ["(\\d{2})x(\\d{2})", "S$1E$2"] + - name: re_replace + args: ["(\\d{1})x(\\d{2})", "S0$1E$2"] + title: # long titles? + optional: true + selector: a[title][href^="index.php?page=torrent-details"] attribute: title filters: - name: replace