media-server-docker-compose/config/prowlarr/Definitions/rmhd.yml

181 lines
5.0 KiB
YAML
Raw Normal View History

2024-04-07 00:37:31 -04:00
---
id: rmhd
name: RM-HD
description: "RM-HD (remastered-hd) is a UKRAINIAN Private tracker for remastered MOVIES / TV / MUSIC"
language: uk-UA
type: private
encoding: UTF-8
links:
- https://remastered-hd.org/
caps:
categorymappings:
- {id: 1, cat: Audio, desc: "HD Audio"}
- {id: 2, cat: Audio/Video, desc: "Music Video"}
- {id: 3, cat: TV/Anime, desc: "Animation"}
- {id: 4, cat: Movies, desc: "Movie"}
- {id: 5, cat: TV, desc: "TV Show"}
- {id: 6, cat: TV/Documentary, desc: "Documentary"}
modes:
search: [q]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
music-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- 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
1: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
- name: info_activity
type: info
label: Account Inactivity
default: "Inactive users are deleted on a regular basis. If you haven't downloaded or given anything away during your 90-day stay on RM-HD, then you are an accidental guest on our resource. The resource needs active users who know exactly what they came here for. Therefore, automatic inactivity clean-ups are carried out on a regular basis. Users with a 1080p class are not deleted by the system."
login:
path: /
method: form
form: form#login
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
do_login: ""
error:
- selector: table:contains("Login failed")
- selector: table:contains("Error")
test:
path: /
selector: a[href="logout"]
search:
paths:
- path: browse
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
# search in title
search: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# search in description
dsearch: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}"
# 0 all, 1 simple, 2 silver, 3 gold, 4 diamond, 5 without seeders
incldead: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows:
selector: table#pager > tbody[style="background:none;"] > tr:has(a[href^="details_"])
fields:
category:
selector: img
case:
img.audio: 1
img.musvid: 2
img.anime: 3
img.movie: 4
img.tvshow: 5
img.docum: 6
_ru:
selector: a[href="RU"]
optional: true
_ua:
selector: a[href="UA"]
optional: true
title:
selector: a[href^="details_"]
filters:
- name: append
args: "{{ if .Result._ru}} {{ .Result._ru }}{{ else }}{{ end }}"
- name: append
args: "{{ if .Result._ua}} {{ .Result._ua }}{{ else }}{{ end }}"
details:
selector: a[href^="details_"]
attribute: href
download:
selector: a[href^="details_"]
attribute: href
filters:
- name: replace
args: ["details_", "download_"]
date:
# Релиз залит: 1 января 2024 в 20:16:09
selector: span:contains("Релиз залит")
filters:
- name: replace
args: ["Релиз залит:\xA0", ""]
- name: replace
args: [" в ", " "]
- name: replace
args: ["января", "January"]
- name: replace
args: ["февраля", "February"]
- name: replace
args: ["марта", "March"]
- name: replace
args: ["апреля", "April"]
- name: replace
args: ["мая", "May"]
- name: replace
args: ["июня", "June"]
- name: replace
args: ["июля", "July"]
- name: replace
args: ["августа", "August"]
- name: replace
args: ["сентября", "September"]
- name: replace
args: ["октября", "October"]
- name: replace
args: ["ноября", "November"]
- name: replace
args: ["декабря", "December"]
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "d MMMM yyyy HH:mm:ss zzz"
grabs:
selector: span[title="Релиз скачен"]
size:
selector: div[valign="bottom"] > b
seeders:
selector: b[title^="Сидируют:"]
leechers:
selector: b[title^="Качают:"]
genre:
selector: table:last-of-type > tbody > tr:nth-child(2) > td
description:
text: "{{ .Result.genre }}"
downloadvolumefactor:
case:
b[style="color:#d08700"]: 0 # gold
b[style="color:#778899"]: 0.5 # silver
b[style="color:blue"]: 0 # diamond
"*": 1
uploadvolumefactor:
case:
b[style="color:blue"]: 2 # diamond
"*": 1
# TBDev