Shareisland: rewrite season/episode information

This commit is contained in:
kaso17 2017-02-02 18:56:36 +01:00
parent f081ddcd7e
commit ba14fab0a1
1 changed files with 11 additions and 0 deletions

View File

@ -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