mirror of
https://github.com/Jackett/Jackett
synced 2025-01-01 04:38:20 +00:00
add torrentz2k a public site. resolves #8213
This commit is contained in:
parent
6a5f19dc23
commit
4a07286d41
2 changed files with 97 additions and 0 deletions
|
@ -142,6 +142,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
|
||||||
* Torrentv
|
* Torrentv
|
||||||
* TorrentView (토렌트뷰)
|
* TorrentView (토렌트뷰)
|
||||||
* Torrentz2
|
* Torrentz2
|
||||||
|
* Torrentz2k
|
||||||
* Underverse
|
* Underverse
|
||||||
* UnionDHT
|
* UnionDHT
|
||||||
* xxxtor
|
* xxxtor
|
||||||
|
|
96
src/Jackett.Common/Definitions/torrentz2k.yml
Normal file
96
src/Jackett.Common/Definitions/torrentz2k.yml
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
---
|
||||||
|
site: torrentz2k
|
||||||
|
name: Torrentz2k
|
||||||
|
description: "Torrentz2k is a Public torrent indexer"
|
||||||
|
language: en-us
|
||||||
|
type: public
|
||||||
|
encoding: UTF-8
|
||||||
|
links:
|
||||||
|
- https://torrentz2k.xyz/
|
||||||
|
|
||||||
|
caps:
|
||||||
|
categories:
|
||||||
|
book: Books
|
||||||
|
film: Movies
|
||||||
|
gamepad: Console
|
||||||
|
list: Other
|
||||||
|
male: XXX
|
||||||
|
music: Audio
|
||||||
|
smile-o: TV/Anime
|
||||||
|
television: TV
|
||||||
|
wrench: PC
|
||||||
|
|
||||||
|
modes:
|
||||||
|
search: [q]
|
||||||
|
tv-search: [q, season, ep]
|
||||||
|
movie-search: [q]
|
||||||
|
|
||||||
|
settings: []
|
||||||
|
|
||||||
|
search:
|
||||||
|
# https://torrentz2k.xyz/search/
|
||||||
|
paths:
|
||||||
|
- path: search/
|
||||||
|
method: post
|
||||||
|
- path: search/
|
||||||
|
method: post
|
||||||
|
inputs:
|
||||||
|
page: 2
|
||||||
|
inputs:
|
||||||
|
q: "{{ if .Keywords }}{{ .Keywords }}{{else}}2020{{end}}"
|
||||||
|
category: all
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
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:
|
||||||
|
# extract the second class
|
||||||
|
- name: split
|
||||||
|
args: [" ", 1]
|
||||||
|
# remove fa- prefix
|
||||||
|
- name: replace
|
||||||
|
args: ["fa-", ""]
|
||||||
|
title:
|
||||||
|
selector: button
|
||||||
|
attribute: title
|
||||||
|
details:
|
||||||
|
# details page is only accessible via form and post which Cardigann does not support.
|
||||||
|
text: /
|
||||||
|
download:
|
||||||
|
selector: a[href^="magnet:?xt="]
|
||||||
|
attribute: href
|
||||||
|
date:
|
||||||
|
selector: td:nth-child(5)
|
||||||
|
filters:
|
||||||
|
- name: replace
|
||||||
|
args: ["sec", " second"]
|
||||||
|
- name: replace
|
||||||
|
args: ["min", " minute"]
|
||||||
|
- name: replace
|
||||||
|
args: ["hr", "hour"]
|
||||||
|
- name: append
|
||||||
|
args: " ago"
|
||||||
|
- name: timeago
|
||||||
|
size:
|
||||||
|
selector: td:nth-child(6)
|
||||||
|
seeders:
|
||||||
|
selector: td:nth-child(3)
|
||||||
|
leechers:
|
||||||
|
selector: td:nth-child(4)
|
||||||
|
downloadvolumefactor:
|
||||||
|
text: 0
|
||||||
|
uploadvolumefactor:
|
||||||
|
text: 1
|
||||||
|
# engine n/a
|
Loading…
Reference in a new issue