mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
cpabien: fix for FlareSolverr, update for keyword results
resolves https://github.com/FlareSolverr/FlareSolverr/issues/789
This commit is contained in:
@@ -72,24 +72,34 @@ search:
|
|||||||
paths:
|
paths:
|
||||||
- path: "{{ if .Keywords }}index.php?do=search&subaction=search{{ else }}{{ end }}"
|
- path: "{{ if .Keywords }}index.php?do=search&subaction=search{{ else }}{{ end }}"
|
||||||
method: post
|
method: post
|
||||||
|
# postData is mandatory FlareSolverr/FlareSolverr#789
|
||||||
|
allowEmptyInputs: true
|
||||||
inputs:
|
inputs:
|
||||||
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ end }}"
|
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ end }}"
|
||||||
# does not support imdbid search and does not return imdb link in results.
|
# does not support imdbid search and does not return imdb link in results.
|
||||||
keywordsfilters:
|
keywordsfilters:
|
||||||
# if searching for season packs swith S01 to saison 1 #9712
|
# if searching for season packs with S01 to saison 1 #9712
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["(?i)(S0)(\\d{1,2})$", "saison $2"]
|
args: ["(?i)\\b(?:S0?)(\\d{1,3})\\b", "saison $1"]
|
||||||
- name: re_replace
|
|
||||||
args: ["(?i)(S)(\\d{1,3})$", "saison $2"]
|
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: div#gauche > table > tbody > tr:has(a), div#dle-content > table > tbody > tr:has(a)
|
selector: div#gauche > table > tbody > tr:has(a), div#dle-content > a.cover2
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: Other
|
text: Other
|
||||||
title_phase1:
|
title_phase1_title:
|
||||||
selector: a
|
selector: a
|
||||||
|
title_phase1_url:
|
||||||
|
selector: a
|
||||||
|
attribute: href
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: torrents\d+\/(.+?)\/
|
||||||
|
- name: replace
|
||||||
|
args: ["-", " "]
|
||||||
|
title_phase1:
|
||||||
|
text: "{{ if .Result.title_phase1_title }}{{ .Result.title_phase1_title }}{{ else }}{{ .Result.title_phase1_url }}{{ end }}"
|
||||||
filters:
|
filters:
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["(?i)\\b(FRENCH|MULTI|TRUEFRENCH|VOSTFR|SUBFRENCH)\\b(.+?)(\\b(19|20\\d{2})\\b)$", "$3 $1$2"]
|
args: ["(?i)\\b(FRENCH|MULTI|TRUEFRENCH|VOSTFR|SUBFRENCH)\\b(.+?)(\\b(19|20\\d{2})\\b)$", "$3 $1$2"]
|
||||||
@@ -113,8 +123,13 @@ search:
|
|||||||
download:
|
download:
|
||||||
selector: a
|
selector: a
|
||||||
attribute: href
|
attribute: href
|
||||||
|
poster:
|
||||||
|
selector: img
|
||||||
|
attribute: src
|
||||||
size:
|
size:
|
||||||
selector: div.poid
|
selector: div.poid
|
||||||
|
optional: true
|
||||||
|
default: "512 MB"
|
||||||
date:
|
date:
|
||||||
text: now
|
text: now
|
||||||
seeders:
|
seeders:
|
||||||
|
Reference in New Issue
Block a user