From 9aae1a628a4f34639ff1c1508de2943819cab162 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 10 Apr 2020 11:34:32 +1200 Subject: [PATCH] moecat: switch to cookie method. resolves #8111 --- src/Jackett.Common/Definitions/moecat.yml | 31 +++++------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/src/Jackett.Common/Definitions/moecat.yml b/src/Jackett.Common/Definitions/moecat.yml index 074d7c9dd..b9d6e58ca 100644 --- a/src/Jackett.Common/Definitions/moecat.yml +++ b/src/Jackett.Common/Definitions/moecat.yml @@ -34,19 +34,13 @@ movie-search: [q, imdbid] settings: - - name: username + - name: cookie type: text - label: Username - - name: password - type: password - label: Password - - name: 2facode - type: text - label: 2FA code - - name: info_2fa + label: Cookie + - name: info type: info - label: "About 2FA code" - default: "Only fill in the 2FA code box if you have enabled 2FA on the MoeCat Web Site. Otherwise just leave it empty." + label: How to get the Cookie + default: "
  1. Access to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button
  5. Refresh the page by pressing F5
  6. Select the Headers tab
  7. Find 'cookie:' in the Request Headers section
  8. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" - name: sort type: select label: Sort requested from site @@ -65,22 +59,11 @@ "asc": "asc" login: - path: login.php - method: form - form: form[action="takelogin.php"] + method: cookie inputs: - logintype: username - 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("登录失败")) + cookie: "{{ .Config.cookie }}" test: path: index.php - selector: a[href="logout.php"] search: paths: