YGG Fix: Removed stage settings. Added https. Added login headers (just in case). (#1561)

This commit is contained in:
Khogniak 2017-07-14 07:42:40 +02:00 committed by kaso17
parent 845faf9066
commit 14f86107e1
1 changed files with 10 additions and 13 deletions

View File

@ -2,10 +2,10 @@
site: yggtorrent
name: YGGtorrent
language: fr-fr
type: private
type: semi-private
encoding: UTF-8
links:
- http://yggtorrent.com
- https://yggtorrent.com
caps:
categorymappings:
@ -22,27 +22,24 @@
- name: password
type: password
label: Password
- name: special_path
type: checkbox
label: Use an alternative path
default: true
- name: path
type: text
label: Alternative path (as seen in url)
default: "alpha"
login:
path: "{{if .Config.special_path }}/{{ .Config.path }}{{else}}{{end}}/user/login"
path: "/user/login"
method: post
inputs:
id: "{{ .Config.username }}"
pass: "{{ .Config.password }}"
submit: ""
headers:
"[:authority]": "yggtorrent.com"
"[:method]": "post"
"[:path]": "/"
"[:scheme]": "https"
error:
- selector: "body > div.page-content > div > div.col-md-10 > div > div > div > div > div.content-box-large.box-with-header > form > center > table > tbody > tr:nth-child(3) > td:nth-child(2) > button.text:contains('Se connecter')"
test:
path: "{{if .Config.special_path }}/{{ .Config.path }}{{else}}{{end}}/"
path: "/"
search:
path: "{{if .Config.special_path }}/{{ .Config.path }}{{else}}{{end}}{{if .Keywords}}/engine/search?q={{ .Keywords}}/{{else}}/torrents/2145-filmvideo{{end}}"
path: "{{if .Keywords}}/engine/search?q={{ .Keywords}}{{else}}/torrents/2145-filmvideo{{end}}"
rows:
selector: "table.table.table-striped > tbody > tr"
fields: