torrent.lt: fixed login, added user/password to settings (#12829)

This commit is contained in:
tomaskazragis 2022-01-15 15:26:58 +02:00 committed by GitHub
parent a2b1604052
commit 6c5a005e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 11 deletions

View File

@ -87,13 +87,12 @@ caps:
book-search: [q]
settings:
- name: cookie
- name: username
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>"
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
@ -119,11 +118,6 @@ settings:
asc: asc
login:
# method: cookie
# inputs:
# cookie: "{{ .Config.cookie }}"
# test:
# path: lt/torrents.php
path: lt/account-login.php
method: post
inputs: