YGGtorrent: cookie login for now

This commit is contained in:
kaso17 2018-04-03 23:06:06 +02:00
parent 655bc5c05e
commit a6486fc233
1 changed files with 6 additions and 3 deletions

View File

@ -72,6 +72,9 @@
movie-search: [q] movie-search: [q]
settings: settings:
- name: cookie
type: text
label: Cookie
- name: username - name: username
type: text type: text
label: Username label: Username
@ -99,7 +102,7 @@
login: login:
path: "/" path: "/"
method: post method: cookie # temp
inputs: inputs:
id: "{{ .Config.username }}" id: "{{ .Config.username }}"
pass: "{{ .Config.password }}" pass: "{{ .Config.password }}"
@ -112,8 +115,8 @@
search: search:
paths: paths:
- path: "{{ if .Keywords }}/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search{{else}}/top/day?category=2145{{end}}" - path: "/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search"
- path: "{{ if .Keywords }}/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&page=50{{else}}/top/day?category=2145&page=50{{end}}" - path: "/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&page=50"
rows: rows:
selector: "table.table > tbody > tr" selector: "table.table > tbody > tr"