tvchaosuk: season packs. resolves #14369

This commit is contained in:
Garfield69 2023-05-25 07:07:24 +12:00
parent fbe225bbf6
commit 3aab5de496
1 changed files with 9 additions and 0 deletions

View File

@ -92,6 +92,12 @@ search:
qty: 100
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
# can search by genre but need range support. &genres[]=Action&genres[]=Comedy for Action and Comedy
keywordsfilters:
# if searching for season packs switch S01 to Series 1 #14369
- name: re_replace
args: ["(?i)(S0)(\\d{1,2})$", "Series $2"]
- name: re_replace
args: ["(?i)(S)(\\d{1,3})$", "Series $2"]
rows:
selector: table > tbody > tr
@ -105,6 +111,9 @@ search:
args: "/categories/(\\d+)"
title:
selector: a.view-torrent
filters:
- name: re_replace
args: ["(?i)Series[\\s]+(\\d+)", "S$1"]
download:
selector: a[href*="/download/"]
attribute: href