From ef73523c8ee1ff87e0910c7abf5bb2ef94d683fd Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 23 Mar 2020 18:08:34 +1300 Subject: [PATCH] torrentdownload: fix category missing. enable cookie method. resolves #7784 --- .../Definitions/torrentdownload.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentdownload.yml b/src/Jackett.Common/Definitions/torrentdownload.yml index 90d55eee6..49f8b8878 100644 --- a/src/Jackett.Common/Definitions/torrentdownload.yml +++ b/src/Jackett.Common/Definitions/torrentdownload.yml @@ -31,6 +31,13 @@ movie-search: [q] settings: + - name: cookie + type: text + label: Cookie + - name: info + type: info + label: How to get the Cookie + default: "
  1. Access 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 (Applies only to Search with Keywords) @@ -44,9 +51,14 @@ selector: a[href^="magnet:?xt="] attribute: href + login: + method: cookie + test: + path: / + search: paths: - - path: "{{ if .Keywords }}search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ .Keywords }}{{else}}latest{{end}}" + - path: "{{ if .Keywords }}search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ .Keywords }}{{else}}{{end}}" rows: selector: table.table2 > tbody > tr:has(span.smallish) @@ -54,7 +66,6 @@ fields: category: selector: div.tt-name > span.smallish - optional: true filters: - name: re_replace args: ["[^A-Za-z]+", ""] # strip everything but letters