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]
settings:
- name: cookie
type: text
label: Cookie
- name: username
type: text
label: Username
@ -99,7 +102,7 @@
login:
path: "/"
method: post
method: cookie # temp
inputs:
id: "{{ .Config.username }}"
pass: "{{ .Config.password }}"
@ -112,8 +115,8 @@
search:
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: "{{ 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"
- path: "/engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&page=50"
rows:
selector: "table.table > tbody > tr"