hon3yhd: bypass login issue by using cookie login for now. #5455

This commit is contained in:
Garfield69 2019-06-20 17:05:14 +12:00
parent 79f8657c9f
commit 734bdd21dd
1 changed files with 26 additions and 10 deletions

View File

@ -50,21 +50,37 @@
search: [q]
tv-search: [q, season, ep]
settings:
- name: cookie
type: text
label: Cookie
- name: info
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker in 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<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here</ol>"
login:
path: login.php
method: form
form: form[action="takelogin.php"]
method: cookie
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
use_ssl: "1"
perm_ssl: "1"
error:
- selector: tbody:has(td.colhead > span:contains("Error"))
- selector: tbody:has(td.colhead > span:contains("failed"))
cookie: "{{ .Config.cookie }}"
test:
path: browse.php
# login:
# path: login.php
# method: form
# form: form[action="takelogin.php"]
# inputs:
# username: "{{ .Config.username }}"
# password: "{{ .Config.password }}"
# use_ssl: "1"
# perm_ssl: "1"
# error:
# - selector: tbody:has(td.colhead > span:contains("Error"))
# - selector: tbody:has(td.colhead > span:contains("failed"))
# test:
# path: browse.php
search:
paths:
- path: browse.php