mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
moecat: switch to cookie method. resolves #8111
This commit is contained in:
@@ -34,19 +34,13 @@
|
|||||||
movie-search: [q, imdbid]
|
movie-search: [q, imdbid]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: username
|
- name: cookie
|
||||||
type: text
|
type: text
|
||||||
label: Username
|
label: Cookie
|
||||||
- name: password
|
- name: info
|
||||||
type: password
|
|
||||||
label: Password
|
|
||||||
- name: 2facode
|
|
||||||
type: text
|
|
||||||
label: 2FA code
|
|
||||||
- name: info_2fa
|
|
||||||
type: info
|
type: info
|
||||||
label: "About 2FA code"
|
label: How to get the Cookie
|
||||||
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the MoeCat Web Site. Otherwise just leave it empty."
|
default: "<ol><li>Access to this tracker with 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 <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
@@ -65,22 +59,11 @@
|
|||||||
"asc": "asc"
|
"asc": "asc"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: login.php
|
method: cookie
|
||||||
method: form
|
|
||||||
form: form[action="takelogin.php"]
|
|
||||||
inputs:
|
inputs:
|
||||||
logintype: username
|
cookie: "{{ .Config.cookie }}"
|
||||||
username: "{{ .Config.username }}"
|
|
||||||
password: "{{ .Config.password }}"
|
|
||||||
scode: "{{ .Config.2facode }}"
|
|
||||||
thispagewidth: yes
|
|
||||||
logout: 720
|
|
||||||
error:
|
|
||||||
- selector: td.embedded:has(h2:contains("姿势不正确"))
|
|
||||||
- selector: td.embedded:has(h2:contains("登录失败"))
|
|
||||||
test:
|
test:
|
||||||
path: index.php
|
path: index.php
|
||||||
selector: a[href="logout.php"]
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
|
Reference in New Issue
Block a user