diff --git a/src/Jackett.Common/Definitions/piratbit.yml b/src/Jackett.Common/Definitions/piratbit.yml index 597414b3d..e64d40e5a 100644 --- a/src/Jackett.Common/Definitions/piratbit.yml +++ b/src/Jackett.Common/Definitions/piratbit.yml @@ -5,6 +5,7 @@ description: "PirateBit is a RUSSIAN Public Torrent Tracker for MOVIES / TV / GE language: ru-RU type: public encoding: UTF-8 +requestDelay: 2 links: - https://pb.wtf/ - https://top.pirat.one/ @@ -680,6 +681,10 @@ search: - name: re_replace # S01E02 to сезон 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: selector: tr[id^="tor_"]:not(:has(span[title="закрыто"])):not(:has(span[title="неоформлено"])) diff --git a/src/Jackett.Common/Definitions/piratbitl.yml b/src/Jackett.Common/Definitions/piratbitl.yml index f11f3c602..e373fdc0f 100644 --- a/src/Jackett.Common/Definitions/piratbitl.yml +++ b/src/Jackett.Common/Definitions/piratbitl.yml @@ -5,6 +5,7 @@ description: "PirateBit is a RUSSIAN Public Torrent Tracker for MOVIES / TV / GE language: ru-RU type: semi-private encoding: UTF-8 +requestDelay: 2 links: - https://pb.wtf/ - https://top.pirat.one/ @@ -605,12 +606,20 @@ caps: book-search: [q] settings: - - name: username + - name: cookie type: text - label: Username - - name: password - type: password - label: Password + label: Cookie + - name: info + type: info + label: How to get the Cookie + default: "
  1. Login 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 (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" + - name: useragent + type: text + label: User-Agent + - name: info_useragent + type: info + label: How to get the User-Agent + default: "
  1. From the same place you fetched the cookie,
  2. Find 'user-agent:' in the Request Headers section
  3. Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
" - name: stripcyrillic type: checkbox label: Strip Cyrillic Letters @@ -640,16 +649,9 @@ settings: 1: asc login: - path: login.php - method: post + method: cookie inputs: - "login_site_username": "{{ .Config.username }}" - "login_password": "{{ .Config.password }}" - autologin: 1 - login: Вход - redirect: / - error: - - selector: table tr td div.alert + cookie: "{{ .Config.cookie }}" test: path: index.php selector: li a[href="/login.php?logout=1"] @@ -692,6 +694,9 @@ search: - name: re_replace # S01E02 to сезон 1 сери 2 args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"] + headers: + User-Agent: ["{{ .Config.useragent }}"] + rows: selector: tr[id^="tor_"]:has(a[href^="/dl.php?id="])