diff --git a/src/Jackett.Common/Definitions/cartoonchaos.yml b/src/Jackett.Common/Definitions/cartoonchaos.yml index 5693c43b6..bf92938ec 100644 --- a/src/Jackett.Common/Definitions/cartoonchaos.yml +++ b/src/Jackett.Common/Definitions/cartoonchaos.yml @@ -82,6 +82,12 @@ search: paths: # 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 + 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: page: torrents search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" @@ -105,6 +111,10 @@ search: args: category title: selector: td a[href^="index.php?page=torrent-details"] + filters: + # #11775 + - name: re_replace + args: ["(?i)(season )", "S"] details: selector: td a[href^="index.php?page=torrent-details"] attribute: href