Skip to content

Commit

Permalink
qingwa: switch to cookie. resolves #15226
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Apr 13, 2024
1 parent 0b9c700 commit 34521b1
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions src/Jackett.Common/Definitions/qingwa.yml
Expand Up @@ -6,9 +6,10 @@ language: zh-CN
type: private
encoding: UTF-8
links:
- https://www.qingwapt.com/
- https://qingwapt.com/
legacylinks:
- https://new.qingwa.pro/
- https://www.qingwapt.com/

caps:
categorymappings:
Expand All @@ -31,19 +32,13 @@ caps:
music-search: [q]

settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: 2facode
- name: cookie
type: text
label: 2FA code
- name: info_2fa
label: Cookie
- name: info
type: info
label: "About 2FA code"
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the Qingwa Web Site. Otherwise just leave it empty."
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser</li><li>Open the <b>DevTools</b> panel by pressing <b>F12</b></li><li>Select the <b>Network</b> tab</li><li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)</li><li>Refresh the page by pressing <b>F5</b></li><li>Click on the first row entry</li><li>Select the <b>Headers</b> tab on the Right panel</li><li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</li></ol>"
- name: freeleech
type: checkbox
label: Search freeleech only
Expand Down Expand Up @@ -74,24 +69,9 @@ settings:
default: "Cherish your user account. Inactive accounts would be deleted based on the following rules:<ol><li>Veteran User or above would never be deleted.</li><li>Elite User or above would never be deleted if parked (at User CP).</li><li>Parked accounts would be deleted if users have not logged in for more than 400 days in a row.</li><li>Unparked accounts would be deleted if users have not logged in for more than 150 days in a row.</li><li>Accounts with both uploaded and downloaded amount being 0 would be deleted if users have not logged in for more than 100 days in a row.</li></ol>"

login:
path: login.php
method: form
form: form[action="takelogin.php"]
captcha:
type: image
selector: img[alt="CAPTCHA"]
input: imagestring
method: cookie
inputs:
secret: ""
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
two_step_code: "{{ .Config.2facode }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("失败"))
cookie: "{{ .Config.cookie }}"
test:
path: index.php
selector: a[href="logout.php"]
Expand Down

0 comments on commit 34521b1

Please sign in to comment.