mirror of https://github.com/Jackett/Jackett
YGG Fix: Removed stage settings. Added https. Added login headers (just in case). (#1561)
This commit is contained in:
parent
845faf9066
commit
14f86107e1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue