1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 13:16:16 +00:00

hon3yhd: restore form login. resolves #5455

This commit is contained in:
Garfield69 2019-10-14 07:16:15 +13:00
parent a2046ea73f
commit 8b723a3cea

View file

@ -50,37 +50,19 @@
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:
method: cookie
path: login.php
method: form
form: form[action="takelogin.php"]
inputs:
cookie: "{{ .Config.cookie }}"
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: tbody:has(td.colhead > span:contains("Error"))
- selector: tbody:has(td.colhead > span:contains("failed"))
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