cartoonchaos: handle season packs. resolves #11775

This commit is contained in:
Garfield69
2021-05-22 13:50:48 +12:00
parent 8e6d556cae
commit 8591196344

View File

@@ -82,6 +82,12 @@ search:
paths: paths:
# http://www.cartoonchaos.org/index.php?page=torrents&search=transformers&category=30;21;20;26;15;16;17&options=0&active=0 # http://www.cartoonchaos.org/index.php?page=torrents&search=transformers&category=30;21;20;26;15;16;17&options=0&active=0
- path: index.php - path: index.php
keywordsfilters:
# if searching for season packs switch S01 to season 1 #11775
- name: re_replace
args: ["(?i)(S0)(\\d{1,2})$", "season $2"]
- name: re_replace
args: ["(?i)(S)(\\d{1,3})$", "season $2"]
inputs: inputs:
page: torrents page: torrents
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
@@ -105,6 +111,10 @@ search:
args: category args: category
title: title:
selector: td a[href^="index.php?page=torrent-details"] selector: td a[href^="index.php?page=torrent-details"]
filters:
# #11775
- name: re_replace
args: ["(?i)(season )", "S"]
details: details:
selector: td a[href^="index.php?page=torrent-details"] selector: td a[href^="index.php?page=torrent-details"]
attribute: href attribute: href