185 lines
6.3 KiB
YAML
185 lines
6.3 KiB
YAML
---
|
|
id: carphunter
|
|
name: Carp-Hunter
|
|
description: "Carp-Hunter is a HUNGARIAN Private Torrent Tracker for MOVIES / TV / GENERAL"
|
|
language: hu-HU
|
|
type: private
|
|
encoding: UTF-8
|
|
requestDelay: 2
|
|
links:
|
|
- https://carp-hunter.hu/
|
|
|
|
caps:
|
|
categorymappings:
|
|
- {id: 1, cat: Movies/SD, desc: "Film/Cam/Eng", default: true}
|
|
- {id: 2, cat: Movies/SD, desc: "Film/Cam/Hun", default: true}
|
|
- {id: 8, cat: Movies/DVD, desc: "Film/DVD/Eng", default: true}
|
|
- {id: 7, cat: Movies/DVD, desc: "Film/DVD/Hun", default: true}
|
|
- {id: 16, cat: Movies/HD, desc: "Film/HD1080P/Eng", default: true}
|
|
- {id: 15, cat: Movies/HD, desc: "Film/HD1080P/Hun", default: true}
|
|
- {id: 14, cat: Movies/HD, desc: "Film/HD720P/Eng", default: true}
|
|
- {id: 13, cat: Movies/HD, desc: "Film/HD720P/Hun", default: true}
|
|
- {id: 4, cat: Movies/SD, desc: "Film/SD/Eng", default: true}
|
|
- {id: 3, cat: Movies/SD, desc: "Film/SD/Hun", default: true}
|
|
- {id: 18, cat: Movies/UHD, desc: "Film/UHD/Eng", default: true}
|
|
- {id: 17, cat: Movies/UHD, desc: "Film/UHD/Hun", default: true}
|
|
- {id: 23, cat: Audio/Audiobook, desc: "Hangosköny", default: true}
|
|
- {id: 19, cat: PC/Games, desc: "Játék/ISO", default: true}
|
|
- {id: 20, cat: PC/Games, desc: "Játék/RIP", default: true}
|
|
- {id: 24, cat: Other, desc: "Képek", default: true}
|
|
- {id: 21, cat: Books, desc: "Könyv/Eng", default: true}
|
|
- {id: 22, cat: Books, desc: "Könyv/Hun", default: true}
|
|
- {id: 35, cat: TV/Anime, desc: "Mese/Eng", default: true}
|
|
- {id: 36, cat: TV/Anime, desc: "Mese/Hun", default: true}
|
|
- {id: 25, cat: PC/Mobile-Other, desc: "Mobil", default: true}
|
|
- {id: 30, cat: PC/ISO, desc: "Programok/ISO", default: true}
|
|
- {id: 31, cat: PC/0day, desc: "Programok/RIP", default: true}
|
|
- {id: 33, cat: TV, desc: "Sorozat/Eng", default: true}
|
|
- {id: 32, cat: TV, desc: "Sorozat/Hun", default: true}
|
|
- {id: 29, cat: Audio/Lossless, desc: "Zene/FLAC/Eng", default: true}
|
|
- {id: 28, cat: Audio/Lossless, desc: "Zene/FLAC/Hun", default: true}
|
|
- {id: 27, cat: Audio/MP3, desc: "Zene/MP3/Eng", default: true}
|
|
- {id: 26, cat: Audio/MP3, desc: "Zene/MP3/Hun", default: true}
|
|
- {id: 34, cat: XXX, desc: "XXX/Filmek", default: false}
|
|
- {id: 39, cat: XXX/ImageSet, desc: "XXX/Képek", default: false}
|
|
|
|
modes:
|
|
search: [q]
|
|
tv-search: [q, season, ep]
|
|
movie-search: [q]
|
|
music-search: [q]
|
|
book-search: [q]
|
|
|
|
settings:
|
|
- name: cookie
|
|
type: text
|
|
label: Cookie
|
|
- name: info
|
|
type: info
|
|
label: How to get the Cookie
|
|
default: "<ol><li>Login to this tracker with your browser</li><li>Open the <b>DevTools</b> panel by pressing <b>F12</b></li><li>Select the <b>Network</b> tab</li><li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)</li><li>Refresh the page by pressing <b>F5</b></li><li>Click on the first row entry</li><li>Select the <b>Headers</b> tab on the Right panel</li><li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</li></ol>"
|
|
- name: freeleech
|
|
type: checkbox
|
|
label: Search freeleech only
|
|
default: false
|
|
- name: sort
|
|
type: select
|
|
label: Sort requested from site
|
|
default: 4
|
|
options:
|
|
4: created
|
|
7: seeders
|
|
5: size
|
|
- name: type
|
|
type: select
|
|
label: Order requested from site
|
|
default: desc
|
|
options:
|
|
desc: desc
|
|
asc: asc
|
|
|
|
login:
|
|
method: cookie
|
|
inputs:
|
|
cookie: "{{ .Config.cookie }}"
|
|
test:
|
|
path: index.php
|
|
selector: a[href^="logout.php"]
|
|
|
|
search:
|
|
paths:
|
|
- path: browse.php
|
|
categories: [1, 2, 8, 7, 16, 15, 14, 13, 4, 3, 18, 17, 23, 19, 20, 24, 21, 22, 35, 36, 25, 30, 31, 33, 32, 29, 28, 27, 26]
|
|
- path: browse.php
|
|
categories: [34, 39]
|
|
inputs:
|
|
xxx: 1
|
|
keywordsfilters:
|
|
# the site uses % for wildcard
|
|
- name: re_replace
|
|
args: ["[^a-zA-Z0-9]+", "%"]
|
|
inputs:
|
|
$raw: "{{ range .Categories }}cat[]={{.}}&{{end}}"
|
|
search: "{{ .Keywords }}"
|
|
# 0 both, 1 onlyactive, 2 onlydead, 3 onlyfree, 4 x2 torrents, 5 mytorrents, 6 waiting for seeds
|
|
incldead: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}"
|
|
sort: "{{ .Config.sort }}"
|
|
order: "{{ .Config.type }}"
|
|
# does not support imdbid searches
|
|
# can support genre searching but you need to know the id, eg &genre2=1 for Comedy (id is 2)
|
|
|
|
rows:
|
|
selector: "table[cellpadding=\"3\"][style=\"width: 920px;\"] > tbody > tr:has(a[href^=\"browse.php?cat=\"])"
|
|
|
|
fields:
|
|
category:
|
|
selector: a[href^="browse.php?cat="]
|
|
attribute: href
|
|
filters:
|
|
- name: querystring
|
|
args: cat
|
|
title:
|
|
selector: a[href*="/details.php?id="]
|
|
attribute: title
|
|
details:
|
|
selector: a[href*="/details.php?id="]
|
|
attribute: href
|
|
download:
|
|
selector: a[href*="/details.php?id="]
|
|
attribute: href
|
|
filters:
|
|
- name: replace
|
|
args: ["/details", "/download"]
|
|
imdbid:
|
|
selector: a[href*="imdb.com/title/tt"]
|
|
attribute: href
|
|
genre:
|
|
selector: small[title]
|
|
attribute: title
|
|
description:
|
|
case:
|
|
img[src="/pic/yes.png"]: "Verified: {{ .Result.genre }}"
|
|
img[src="/pic/nincs.png"]: "Unverified: {{ .Result.genre }}"
|
|
poster:
|
|
selector: a[onmouseover]
|
|
attribute: onmouseover
|
|
filters:
|
|
- name: regexp
|
|
args: "showTorrentThumb\\('(.*?)', "
|
|
date:
|
|
selector: td:nth-last-child(8)
|
|
filters:
|
|
- name: regexp
|
|
args: (\d{4}-\d{2}-\d{2}.\d{2}:\d{2}:\d{2})
|
|
- name: replace
|
|
args: ["\u00a0", " "]
|
|
- name: append
|
|
args: " +01:00" # CET
|
|
- name: dateparse
|
|
args: "yyyy-MM-dd HH:mm:ss zzz"
|
|
files:
|
|
selector: td:nth-last-child(7)
|
|
size:
|
|
selector: td:nth-last-child(5)
|
|
grabs:
|
|
selector: td:nth-last-child(4)
|
|
seeders:
|
|
selector: td:nth-last-child(3)
|
|
leechers:
|
|
selector: td:nth-last-child(2)
|
|
downloadvolumefactor:
|
|
case:
|
|
font:contains("x0"): 0
|
|
"*": 1
|
|
uploadvolumefactor:
|
|
case:
|
|
font:contains("x2"): 2
|
|
font:contains("x4"): 4
|
|
"*": 1
|
|
minimumratio:
|
|
text: 1.0
|
|
minimumseedtime:
|
|
# 2 days (as seconds = 2 x 24 x 60 x 60)
|
|
text: 172800
|
|
# engine n/a
|