mirror of https://github.com/Jackett/Jackett
128 lines
3.5 KiB
YAML
128 lines
3.5 KiB
YAML
---
|
|
id: torrentproject2
|
|
name: TorrentProject2
|
|
description: "TorrentProject2 is a Public torrent meta-search engine"
|
|
language: en-US
|
|
type: public
|
|
encoding: UTF-8
|
|
requestDelay: 2
|
|
links:
|
|
- https://torrentproject2.net/
|
|
- https://torrentproject2.org/
|
|
- https://torrentproject.info/
|
|
- https://torrentproject.biz/
|
|
- https://torrentproject.xyz/
|
|
- https://torrentproject.cc/
|
|
legacylinks:
|
|
- https://torrentproject2.se/
|
|
- https://torrentproject2.com/
|
|
|
|
caps:
|
|
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]
|
|
tv-search: [q, season, ep]
|
|
movie-search: [q]
|
|
music-search: [q]
|
|
book-search: [q]
|
|
|
|
settings:
|
|
- name: filter-verified
|
|
type: checkbox
|
|
label: "Only include verifed content in results"
|
|
default: false
|
|
- name: sort
|
|
type: select
|
|
label: Sort requested from site
|
|
default: latest
|
|
options:
|
|
latest: "created desc"
|
|
oldest: "created asc"
|
|
seeders: seeders
|
|
size: size
|
|
|
|
download:
|
|
selectors:
|
|
- selector: "#download > div:nth-child(2) > div:nth-child(1) > a"
|
|
attribute: href
|
|
filters:
|
|
- name: replace
|
|
args: ["https://mylink.me.uk/?url=", ""]
|
|
- name: replace
|
|
args: ["https://mylink.cx/?url=", ""]
|
|
- name: urldecode
|
|
|
|
search:
|
|
paths:
|
|
- 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\"])"
|
|
|
|
fields:
|
|
category:
|
|
text: Other
|
|
category|noappend:
|
|
optional: true
|
|
selector: div > span:nth-child(1) > span
|
|
title:
|
|
selector: span > a
|
|
details:
|
|
selector: span > a
|
|
attribute: href
|
|
download:
|
|
selector: span > a
|
|
attribute: href
|
|
date_year:
|
|
# Sep. 7th '10
|
|
selector: div > span:nth-child(4):not(:contains(":"))
|
|
optional: true
|
|
filters:
|
|
- name: re_replace
|
|
args: ["(?i)(st|nd|rd|th)", ""]
|
|
- name: replace
|
|
args: ["'", ""]
|
|
- name: append
|
|
args: " -07:00" # PDT
|
|
- name: dateparse
|
|
args: "Jan. 2 06 -07:00"
|
|
date_time:
|
|
# 2020-11-05 07:34:44
|
|
selector: div > span:nth-child(4):contains(":")
|
|
optional: true
|
|
filters:
|
|
- name: append
|
|
args: " -07:00" # PDT
|
|
- name: dateparse
|
|
args: "2006-01-02 15:04:05 -07:00"
|
|
date:
|
|
text: "{{ if or .Result.date_year .Result.date_time }}{{ or .Result.date_year .Result.date_time }}{{ else }}now{{ end }}"
|
|
size:
|
|
selector: div > span:nth-child(5)
|
|
seeders:
|
|
selector: div > span:nth-child(2)
|
|
filters:
|
|
- name: replace
|
|
args: ["N/A", "0"]
|
|
leechers:
|
|
selector: div > span:nth-child(3)
|
|
filters:
|
|
- name: replace
|
|
args: ["N/A", "0"]
|
|
downloadvolumefactor:
|
|
text: 0
|
|
uploadvolumefactor:
|
|
text: 1
|
|
# engine n/a
|