Jackett/src/Jackett.Common/Definitions/ztracker.yml

181 lines
5.2 KiB
YAML

---
id: ztracker
name: Ztracker
description: "Ztracker is a HUNGARIAN Private Torrent Tracker for 0DAY / GENERAL"
language: hu-hu
type: semi-private
encoding: ISO-8859-2
links:
- http://ztracker.org/ # site does not support https ERR_CONNECTION_REFUSED
caps:
categorymappings:
- {id: 30, cat: Movies/SD, desc: "CAM/HUN"}
- {id: 29, cat: Movies/SD, desc: "CAM/Külf."}
- {id: 3, cat: Books, desc: "Ebook"}
- {id: 9, cat: Movies/HD, desc: "Film/HD-DVD/Hun"}
- {id: 38, cat: Movies/3D, desc: "Film/3D"}
- {id: 39, cat: Movies/3D, desc: "Film/3D-HUN"}
- {id: 37, cat: Movies/UHD, desc: "Film/4K"}
- {id: 32, cat: Movies/UHD, desc: "Film/4K-HUN"}
- {id: 35, cat: Movies/HD, desc: "Film/HD"}
- {id: 31, cat: Movies/HD, desc: "Film/HD-HUN"}
- {id: 36, cat: Movies/DVD, desc: "Film/DVD"}
- {id: 34, cat: Movies/DVD, desc: "Film/DVD-HUN"}
- {id: 10, cat: Movies/HD, desc: "Film/HD-DVD/Külf"}
- {id: 7, cat: Movies/SD, desc: "Film/SD-X264-HUN"}
- {id: 27, cat: Movies/SD, desc: "Film/SD-X264-HUN Mese"}
- {id: 25, cat: TV/SD, desc: "Sorozat/SD-HUN"}
- {id: 8, cat: Movies/SD, desc: "Film/SD-X264"}
- {id: 28, cat: Movies/SD, desc: "Film/SD-X264 Mese/Külf."}
- {id: 26, cat: TV/SD, desc: "Sorozat/SD"}
- {id: 15, cat: XXX, desc: "Film/XXX-SD"}
- {id: 16, cat: XXX, desc: "Film/XXX-HD"}
- {id: 40, cat: XXX, desc: "Film/XXX-DVD"}
- {id: 41, cat: XXX, desc: "Film/XXX-4K"}
- {id: 33, cat: XXX, desc: "Film/HD-XXX"}
- {id: 4, cat: PC/Games, desc: "Game/PC"}
- {id: 45, cat: Console, desc: "Game/Konzol"}
- {id: 18, cat: Other, desc: "Képek"}
- {id: 17, cat: XXX, desc: "Képek/XXX"}
- {id: 24, cat: PC/Mobile-Other, desc: "Program/Mobil"}
- {id: 1, cat: PC/0day, desc: "Program/PC"}
- {id: 44, cat: TV/HD, desc: "Sorozat/HD-HUN"}
- {id: 46, cat: TV/HD, desc: "Sorozat/HD"}
- {id: 48, cat: TV/UHD, desc: "Sorozat/4K-HUN"}
- {id: 47, cat: TV/UHD, desc: "Sorozat/4K"}
- {id: 11, cat: Audio, desc: "Zene/Hun"}
- {id: 12, cat: Audio, desc: "Zene/Külf."}
modes:
search: [q]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
music-search: [q]
book-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "4"
options:
"4": "created"
"7": "seeders"
"5": "size"
"1": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login:
path: belepes.php
method: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: div.error
- selector: table:has(img[src="/pic/ts_error/error.jpg"])
message:
selector: table:has(img[src="/pic/ts_error/error.jpg"])
remove: style
test:
path: index.php
selector: a[href*="/logout.php?logouthash="]
search:
paths:
- path: browse_old.php
keywordsfilters:
- name: re_replace
args: ["[^a-zA-Z0-9]+", "%"]
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# t_name, t_description, t_both, t_uploader
search_type: "{{ if .Query.IMDBID }}t_description{{else}}t_name{{end}}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
# does not return imdb link in results
rows:
selector: table[border="1"] > tbody > tr:has(a[href*="details.php?id="])
fields:
title:
selector: a[href*="details.php?id="][onmouseover]
attribute: onmouseover
filters:
- name: regexp
args: <font class=\\'smalltext\\'>(.*?)</font>
banner:
selector: a[href*="details.php?id="][onmouseover]
attribute: onmouseover
filters:
- name: regexp
args: img src=\\'(.*?)\\'
imdb:
optional: true
selector: a[href*="imdb.com/title/tt"]
attribute: href
details:
selector: a[href*="details.php?id="][onmouseover]
attribute: href
category:
selector: a[href^="/browse_old.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
download:
selector: a[href*="details.php?id="]
attribute: href
filters:
- name: replace
args: ["details.php", "download.php"]
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
files:
selector: td:nth-child(5)
size:
text: 0
size:
selector: td:nth-child(11):has(b)
optional: true
remove: b
downloadvolumefactor:
case:
img[src="./pic/freedownload.gif"]: 0
img[src="./pic/silverdownload.gif"]: 0.5
"*": 1
uploadvolumefactor:
case:
img[src="./pic/x2.gif"]: 2
"*": 1
date:
selector: td:nth-child(2)
remove: a, img
filters:
- name: replace
args: ["\xA0", " "]
- name: replace
args: ["Ma", "Today"]
- name: replace
args: ["Tegnap", "Yesterday"]
- name: re_replace
args: ["12:(\\d\\d) PM", "00:$1 PM"]
# TS Special Edition