mirror of https://github.com/Jackett/Jackett
109 lines
2.9 KiB
YAML
109 lines
2.9 KiB
YAML
---
|
|
id: torrentz2k
|
|
name: Torrentz2k
|
|
description: "Torrentz2k is a Public torrent indexer"
|
|
language: en-us
|
|
type: public
|
|
encoding: UTF-8
|
|
links:
|
|
- https://torrentz2k.xyz/
|
|
legacylinks:
|
|
- https://torrentz2k.pw/
|
|
|
|
caps:
|
|
categorymappings:
|
|
- {id: book, cat: Books, desc: Books}
|
|
- {id: film, cat: Movies, desc: Movies}
|
|
- {id: gamepad, cat: PC/Games, desc: Games}
|
|
- {id: list, cat: Other, desc: Other}
|
|
- {id: male, cat: XXX, desc: XXX}
|
|
- {id: music, cat: Audio, desc: "Music MP3"}
|
|
- {id: sellsy, cat: Audio/Lossless, desc: "Music Lossless"}
|
|
- {id: play-circle, cat: TV, desc: WEBTV}
|
|
- {id: smile-o, cat: TV/Anime, desc: Anime}
|
|
- {id: television, cat: TV, desc: TV}
|
|
- {id: wrench, cat: PC, desc: Apps}
|
|
|
|
modes:
|
|
search: [q]
|
|
tv-search: [q, season, ep]
|
|
movie-search: [q]
|
|
music-search: [q]
|
|
book-search: [q]
|
|
|
|
settings:
|
|
- name: flaresolverr
|
|
type: info
|
|
label: FlareSolverr
|
|
default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolver</a> to access it.
|
|
|
|
search:
|
|
# https://torrentz2k.xyz/search/ or https://torrentz2k.xyz/recent/
|
|
paths:
|
|
- path: "{{ if .Keywords }}search/{{ else }}recent/{{ end }}"
|
|
method: post
|
|
- path: "{{ if .Keywords }}search/{{ else }}recent/{{ end }}"
|
|
method: post
|
|
inputs:
|
|
page: 2
|
|
inputs:
|
|
$raw: "{{ if .Keywords }}q={{ .Keywords }}{{ else }}recent=recent{{ end }}"
|
|
category: all
|
|
keywordsfilters:
|
|
# the site uses % for wildcard
|
|
- name: re_replace
|
|
args: ["[^a-zA-Z0-9]+", "%"]
|
|
|
|
rows:
|
|
selector: table.table-striped > tbody > tr
|
|
filters:
|
|
- name: andmatch
|
|
|
|
fields:
|
|
category:
|
|
selector: i
|
|
attribute: class
|
|
filters:
|
|
- name: append
|
|
args: " list"
|
|
# extract the second class
|
|
- name: split
|
|
args: [" ", 1]
|
|
# remove fa- prefix
|
|
- name: replace
|
|
args: ["fa-", ""]
|
|
title:
|
|
selector: span.btntitle
|
|
attribute: title
|
|
details:
|
|
# details page is only accessible via form and post which Cardigann does not support.
|
|
text: "{{ .Config.sitelink }}"
|
|
download:
|
|
selector: a[href^="magnet:?xt="]
|
|
attribute: href
|
|
date:
|
|
selector: td:nth-child(5)
|
|
filters:
|
|
- name: replace
|
|
args: ["sec", "seconds"]
|
|
- name: replace
|
|
args: ["min", "minutes"]
|
|
- name: replace
|
|
args: ["hr", "hours"]
|
|
- name: append
|
|
args: " ago"
|
|
- name: timeago
|
|
_size:
|
|
selector: td:nth-child(6)
|
|
size:
|
|
text: "{{ if .Result._size }}{{ .Result._size }}{{ else }}0 B{{ end }}"
|
|
seeders:
|
|
selector: td:nth-child(3)
|
|
leechers:
|
|
selector: td:nth-child(4)
|
|
downloadvolumefactor:
|
|
text: 0
|
|
uploadvolumefactor:
|
|
text: 1
|
|
# engine n/a
|