Skip to content

Commit

Permalink
add torrentz2k a public site. resolves #8213
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Apr 17, 2020
1 parent 6a5f19d commit 4a07286
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
* Torrentv
* TorrentView (토렌트뷰)
* Torrentz2
* Torrentz2k
* Underverse
* UnionDHT
* xxxtor
Expand Down
96 changes: 96 additions & 0 deletions src/Jackett.Common/Definitions/torrentz2k.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4a07286

Please sign in to comment.