mirror of https://github.com/Jackett/Jackett
piratbit: switch to cookie & UA login, use Windows UA to avoid block (#14729)
This commit is contained in:
parent
c081eaf581
commit
1eebbf6e82
|
@ -5,6 +5,7 @@ description: "PirateBit is a RUSSIAN Public Torrent Tracker for MOVIES / TV / GE
|
||||||
language: ru-RU
|
language: ru-RU
|
||||||
type: public
|
type: public
|
||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
|
requestDelay: 2
|
||||||
links:
|
links:
|
||||||
- https://pb.wtf/
|
- https://pb.wtf/
|
||||||
- https://top.pirat.one/
|
- https://top.pirat.one/
|
||||||
|
@ -680,6 +681,10 @@ search:
|
||||||
- name: re_replace # S01E02 to сезон 1 сери 2
|
- name: re_replace # S01E02 to сезон 1 сери 2
|
||||||
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"]
|
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"]
|
||||||
|
|
||||||
|
headers:
|
||||||
|
# site blocks Jackett's Linux User-Agents, so use Windows instead
|
||||||
|
User-Agent: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"]
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: tr[id^="tor_"]:not(:has(span[title="закрыто"])):not(:has(span[title="неоформлено"]))
|
selector: tr[id^="tor_"]:not(:has(span[title="закрыто"])):not(:has(span[title="неоформлено"]))
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ description: "PirateBit is a RUSSIAN Public Torrent Tracker for MOVIES / TV / GE
|
||||||
language: ru-RU
|
language: ru-RU
|
||||||
type: semi-private
|
type: semi-private
|
||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
|
requestDelay: 2
|
||||||
links:
|
links:
|
||||||
- https://pb.wtf/
|
- https://pb.wtf/
|
||||||
- https://top.pirat.one/
|
- https://top.pirat.one/
|
||||||
|
@ -605,12 +606,20 @@ caps:
|
||||||
book-search: [q]
|
book-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: username
|
- name: cookie
|
||||||
type: text
|
type: text
|
||||||
label: Username
|
label: Cookie
|
||||||
- name: password
|
- name: info
|
||||||
type: password
|
type: info
|
||||||
label: Password
|
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: useragent
|
||||||
|
type: text
|
||||||
|
label: User-Agent
|
||||||
|
- name: info_useragent
|
||||||
|
type: info
|
||||||
|
label: How to get the User-Agent
|
||||||
|
default: "<ol><li>From the same place you fetched the cookie,</li><li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</li></ol>"
|
||||||
- name: stripcyrillic
|
- name: stripcyrillic
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Strip Cyrillic Letters
|
label: Strip Cyrillic Letters
|
||||||
|
@ -640,16 +649,9 @@ settings:
|
||||||
1: asc
|
1: asc
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: login.php
|
method: cookie
|
||||||
method: post
|
|
||||||
inputs:
|
inputs:
|
||||||
"login_site_username": "{{ .Config.username }}"
|
cookie: "{{ .Config.cookie }}"
|
||||||
"login_password": "{{ .Config.password }}"
|
|
||||||
autologin: 1
|
|
||||||
login: Вход
|
|
||||||
redirect: /
|
|
||||||
error:
|
|
||||||
- selector: table tr td div.alert
|
|
||||||
test:
|
test:
|
||||||
path: index.php
|
path: index.php
|
||||||
selector: li a[href="/login.php?logout=1"]
|
selector: li a[href="/login.php?logout=1"]
|
||||||
|
@ -692,6 +694,9 @@ search:
|
||||||
- name: re_replace # S01E02 to сезон 1 сери 2
|
- name: re_replace # S01E02 to сезон 1 сери 2
|
||||||
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"]
|
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"]
|
||||||
|
|
||||||
|
headers:
|
||||||
|
User-Agent: ["{{ .Config.useragent }}"]
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: tr[id^="tor_"]:has(a[href^="/dl.php?id="])
|
selector: tr[id^="tor_"]:has(a[href^="/dl.php?id="])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue