lechaudron: upgrade search engine. resolves #8920

This commit is contained in:
Garfield69 2020-06-09 07:44:10 +12:00
parent b480df087a
commit ee0b5f1d98
1 changed files with 28 additions and 24 deletions

View File

@ -130,18 +130,6 @@ caps:
tv-search: [q, season, ep]
movie-search: [q]
# login:
# path: TTV3/Connexion
# method: post
# inputs:
# username: "{{ .Config.username }}"
# password: "{{ .Config.password }}"
# error:
# - selector: font[color="red"]
# test:
# path: TTV3/Bienvenue
# selector: a[href$="/TTV3/Deconnexion"]
settings:
- name: cookie
type: text
@ -150,7 +138,22 @@ settings:
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
- name: sort
type: select
label: Sort requested from site
default: "id"
options:
"id": "created"
"seeders": "seeders"
"size": "size"
"name": "title"
- name: order
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login:
method: cookie
@ -166,19 +169,20 @@ download:
search:
paths:
# https://lechaudron.nl/TTV3/Torrents/Recherche?recherche=viva+maria&type=exacte&endroit=nomtorrent&langue=0&tl=peuimporte
# categories for searching are unsupported
# https://lechaudron.nl/TTV3/Torrents/Recherche?search=aladdin&cat=0&incldead=1&freeleech=0&lang=0
- path: TTV3/Torrents/Recherche
inputs:
recherche: "{{ .Keywords }}"
# searchtype un (one word) tout (all words) exacte (exact expression)
type: tout
# searchin nomtorrent (name) or desctorrent (descr)
endroit: nomtorrent
# language 0 all 2 english
langue: 0
# freeleech oui (yes) non (no) peuimporte (ignore)
tl: peuimporte
search: "{{ .Keywords }}"
# categories for searching are unsupported
cat: 0
# 0 active, 1 incldead, 2 onlydead
incldead: 1
# 2 yes, 1 no, 0 both
freeleech: 0
# 0 all, 2 English, etc
lang: 0
sort: "{{ .Config.sort }}"
order: "{{ .Config.order }}"
# does not support imdbid searches and does not return imdb link in results
rows: