Jackett/src/Jackett.Common/Definitions/torrentz2nz.yml

80 lines
1.8 KiB
YAML

---
id: torrentz2nz
name: Torrentz2nz
description: "Torrentz2nz is a Public torrent meta-search engine"
language: en-US
type: public
encoding: UTF-8
links:
- https://torrentz2.nz/
- https://torrentz2.nocensor.art/
legacylinks:
- https://torrentz2.nocensor.world/
- https://torrentz2.nocensor.lol/
caps:
# unfortunately torrentz2nz does not display categories anywhere in its search results page :-(
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: TV, desc: "TV"}
- {id: 3, cat: Other, desc: "Other"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
settings:
- name: info_8000
type: info
label: About Torrentz2nz Categories
default: Torrentz2nz does not return categories in its search results.</br>To add to your Apps' Torznab indexer, replace all categories with 8000(Other).
search:
paths:
- path: search
inputs:
q: "{{ .Keywords }}"
rows:
selector: dl
fields:
category:
text: 3
title:
selector: dt
details:
selector: dt a
attribute: href
magnet:
selector: dd a
attribute: href
date:
selector: dd span:nth-child(2)
filters:
- name: replace
args: ["a ", "1 "]
- name: timeago
size:
selector: dd span:nth-child(3)
seeders:
selector: dd span:nth-child(4)
filters:
- name: re_replace
args: ["(\\d+)\\.(\\d+)K", "$1$200"]
- name: replace
args: ["K", "000"]
leechers:
selector: dd span:nth-child(5)
filters:
- name: re_replace
args: ["(\\d+)\\.(\\d+)K", "$1$200"]
- name: replace
args: ["K", "000"]
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a