torrentproject2: change search, add categorymappings (#10081)

This commit is contained in:
ilike2burnthing 2020-11-02 22:25:06 +00:00 committed by GitHub
parent f8b86383e6
commit 49b11b0fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 28 deletions

View File

@ -17,28 +17,16 @@ legacylinks:
- https://torrentproject.cc/ - https://torrentproject.cc/
caps: caps:
categories: categorymappings:
"video tv": TV - {id: Movies, cat: Movies, desc: Movies}
"video dvd": Movies/SD - {id: Music, cat: Audio, desc: Music}
"Video Dvdrip": Movies/SD - {id: Apps, cat: PC/0day, desc: Apps}
"video hdrip": Movies/HD - {id: Mobile, cat: PC/Mobile-Other, desc: Mobile}
"Video Lq": Movies/Foreign - {id: Games, cat: PC/Games, desc: Games}
"audio mp3": Audio/MP3 - {id: TV, cat: TV, desc: TV}
"audio lossless": Audio/Lossless - {id: Documentaries, cat: TV/Documentary, desc: Documentaries}
video: Movies - {id: XXX, cat: XXX, desc: XXX}
ebooks: Books/EBook - {id: Other, cat: Other, desc: Other}
"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
modes: modes:
search: [q] search: [q]
@ -61,10 +49,6 @@ settings:
oldest: "created asc" oldest: "created asc"
seeders: seeders seeders: seeders
size: size 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: download:
selector: "#download > div:nth-child(2) > div:nth-child(1) > a" selector: "#download > div:nth-child(2) > div:nth-child(1) > a"
@ -78,8 +62,8 @@ download:
search: search:
paths: paths:
- path: "?t={{ if .Keywords }}{{ re_replace .Keywords \" \" \"+\" }}{{ else }}test{{ 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 }}"
followredirect: true - path: "browse?t={{ if .Keywords }}{{ re_replace .Keywords \" \" \"+\" }}{{ else }}{{ end }}&orderby={{ .Config.sort }}{{ if .Config.filter-verified }}&safe=on{{ else }}{{ end }}&p=1"
rows: rows:
selector: "#similarfiles div:has(a[href^=\"/t\"])" selector: "#similarfiles div:has(a[href^=\"/t\"])"