Jackett/src/Jackett.Common/Definitions/eniahd.yml

171 lines
5.1 KiB
YAML
Raw Normal View History

---
site: eniahd
name: EniaHD
description: "EniaHD is a RUSSIAN Semi-Private Torrent Tracker for MOVIES / TV"
language: ru-ru
type: semi-private
encoding: UTF-8
links:
- https://eniahd.com/
caps:
categorymappings:
# Cinema
- {id: 13, cat: Movies/HD, desc: "Зарубежное кино HD"}
- {id: 11, cat: Movies, desc: "Зарубежное кино"}
- {id: 12, cat: Movies, desc: "Наше кино"}
# TV
- {id: 2, cat: TV/HD, desc: "Зарубежные сериалы HD"}
- {id: 17, cat: TV/HD, desc: "Зарубежные сериалы HD для Apple TV"}
- {id: 22, cat: TV, desc: "Зарубежные сериалы HEVC"}
- {id: 3, cat: TV, desc: "Зарубежные сериалы"}
- {id: 14, cat: TV, desc: "Русские сериалы"}
- {id: 10, cat: TV, desc: "Звуковые дорожки"}
# Cartoons
- {id: 24, cat: TV, desc: "Мультфильмы"}
- {id: 25, cat: TV, desc: "Мультсериалы"}
# Documentary
- {id: 7, cat: TV/Documentary, desc: "Документальные (HD Video)"}
- {id: 21, cat: TV/Documentary, desc: "Документальные"}
- {id: 28, cat: TV/Documentary, desc: "Развлекательные телепередачи и шоу"}
# Miscellaneous
- {id: 8, cat: Other, desc: "Разное (раздачи)"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: striprussian
type: checkbox
label: Strip Russian Letters
default: false
login:
path: login.php
method: form
form: form[action="login.php"]
inputs:
login_username: "{{ .Config.username }}"
login_password: "{{ .Config.password }}"
redirect: "/index.php"
autologin: 1
error:
- selector: table.error
test:
path: index.php
selector: a[href="./login.php?logout=1"]
search:
paths:
- path: tracker.php
keywordsfilters:
- name: diacritics
args: replace
- name: re_replace # S01 to сезон 1
args: ["(?i)\\bS0*(\\d+)\\b", "сезон $1"]
- name: re_replace # S01E01 to сезон 1 серии 1
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 серии $2"]
inputs:
$raw: "{{ if .Categories }}{{ range .Categories }}f[]={{.}}&{{end}}{{else}}f[]=-1{{end}}"
prev_allw: 0
prev_a: 0
prev_dla: 0
prev_dlc: 0
prev_dld: 0
prev_dlw: 0
prev_my: 0
prev_new: 0
prev_sd: 0
prev_da: 1
prev_dc: 0
prev_df: 1
prev_ds: 0
prev_tor_type: 0
# sort by 1=registered 2=topicTitle 4=completed 10=seed 11=leech 12=up 13=down 5=replies 6=views 7=size 8=lastPost 9=seedLastSeen
o: 1
# 1=asc 2=desc
s: 2
# show category
dc: 0
# show forum
df: 1
# show author
da: 1
# show speed
ds: 0
# -1=all time
tm: -1
# seed not seen -1=disregard
sns: -1
# group releases -1=not selected
srg: -1
# title search
nm: "{{ .Keywords }}"
# find a username
pn: ""
# search by partial word
allw: 0
rows:
selector: tr[id^="tor_"]:has(a[href^="./dl.php?id="])
fields:
title:
selector: a.tLink
filters:
# normalize to SXXEYY format
- name: re_replace
args: ["[\\:\\-\\/\\|]", " "]
- name: re_replace
args: ["(.*)[CСcс]езон\\s+(\\d+).+[CСcс]ери[ия]\\s+(\\d+)\\s+(\\d+)\\s+из\\s+\\d+(.*)", "$1 S$2E$3-$4 rus $5"]
- name: re_replace
args: ["(.*)[CСcс]езон\\s+(\\d+).+[CСcс]ери[ия]\\s+(\\d+)\\s+из\\s+\\d+(.*)", "$1 S$2E$3 rus $4"]
- name: re_replace
args: ["(.*)[CСcс]езон\\s+(\\d+)(.*)", "$1 S$2 rus $3"]
- name: re_replace
args: ["(\\([А-Яа-я\\W]+\\))|(^[А-Яа-я\\W\\d]+\\/ )|([а-яА-Я \\-]+,+)|([а-яА-Я]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"]
- name: replace
args: ["WEB DL", "WEBDL"]
- name: replace
args: ["WEBDLRip", "WEBDL"]
- name: replace
args: ["HDTVRip", "HDTV"]
details:
selector: a.tLink
attribute: href
download:
selector: a[href^="./dl.php?id="]
attribute: href
magnet:
optional: true
selector: a[href^="magnet:?xt="]
attribute: href
category:
selector: a.gen
attribute: href
filters:
- name: querystring
args: f
size:
selector: td:nth-child(6) > u
seeders:
selector: td.seedmed > b
leechers:
selector: td.leechmed > b
grabs:
selector: td:nth-child(9)
date:
selector: td:last-child > u
downloadvolumefactor:
text: "1"
uploadvolumefactor:
text: "1"