From 49b11b0fd3a3f731e971bf981159c107e337310d Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Mon, 2 Nov 2020 22:25:06 +0000 Subject: [PATCH] torrentproject2: change search, add categorymappings (#10081) --- .../Definitions/torrentproject2.yml | 40 ++++++------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentproject2.yml b/src/Jackett.Common/Definitions/torrentproject2.yml index be4a5fb43..82a5a2daa 100644 --- a/src/Jackett.Common/Definitions/torrentproject2.yml +++ b/src/Jackett.Common/Definitions/torrentproject2.yml @@ -17,28 +17,16 @@ legacylinks: - https://torrentproject.cc/ caps: - categories: - "video tv": TV - "video dvd": Movies/SD - "Video Dvdrip": Movies/SD - "video hdrip": Movies/HD - "Video Lq": Movies/Foreign - "audio mp3": Audio/MP3 - "audio lossless": Audio/Lossless - video: Movies - ebooks: Books/EBook - "Ebooks Comics": Books/Comics - "Ebooks Magazines": Other - "Ebooks Audiobook": Audio/Audiobook - "Ebooks Tutorials": Books/EBook - "Games PC": PC/Games - "Games Nintendo": Console - "Games PlayStation": Console - "Games XBox": Console/XBox - Mobile: PC/Mobile-Other - Applications: PC - Images: Other - Other: Other + categorymappings: + - {id: Movies, cat: Movies, desc: Movies} + - {id: Music, cat: Audio, desc: Music} + - {id: Apps, cat: PC/0day, desc: Apps} + - {id: Mobile, cat: PC/Mobile-Other, desc: Mobile} + - {id: Games, cat: PC/Games, desc: Games} + - {id: TV, cat: TV, desc: TV} + - {id: Documentaries, cat: TV/Documentary, desc: Documentaries} + - {id: XXX, cat: XXX, desc: XXX} + - {id: Other, cat: Other, desc: Other} modes: search: [q] @@ -61,10 +49,6 @@ settings: oldest: "created asc" seeders: seeders size: size - - name: info_8000 - type: info - label: About TorrentProject2 Categories - default: TorrentProject2 does not return categories in its search results page. To add to Sonarr or Radarr replace all categories with 8000(Other). download: selector: "#download > div:nth-child(2) > div:nth-child(1) > a" @@ -78,8 +62,8 @@ download: search: paths: - - path: "?t={{ if .Keywords }}{{ re_replace .Keywords \" \" \"+\" }}{{ else }}test{{ end }}&orderby={{ .Config.sort }}{{ if .Config.filter-verified }}&safe=on{{ else }}{{ end }}" - followredirect: true + - path: "browse?t={{ if .Keywords }}{{ re_replace .Keywords \" \" \"+\" }}{{ else }}{{ end }}&orderby={{ .Config.sort }}{{ if .Config.filter-verified }}&safe=on{{ else }}{{ end }}" + - path: "browse?t={{ if .Keywords }}{{ re_replace .Keywords \" \" \"+\" }}{{ else }}{{ end }}&orderby={{ .Config.sort }}{{ if .Config.filter-verified }}&safe=on{{ else }}{{ end }}&p=1" rows: selector: "#similarfiles div:has(a[href^=\"/t\"])"