Jackett/src/Jackett.Common/Definitions/rockbox.yml

121 lines
2.7 KiB
YAML
Raw Normal View History

2018-10-11 21:08:33 +00:00
---
id: RockBox
2020-10-14 22:07:53 +00:00
name: RockBox
description: "RockBox Semi-Private site dedicated to HEAVY METAL/ROCK MUSIC. This definition is for the English site."
language: en-us
type: semi-private
encoding: UTF-8
links:
- https://rawkbawx.rocks/
2018-10-11 21:08:33 +00:00
caps:
categories:
"Music": Audio
2018-10-11 21:08:33 +00:00
modes:
search: [q]
music-search: [q, album, artist]
2019-12-19 21:50:28 +00:00
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "data"
options:
"data": "created"
"seeds": "seeders"
"size": "size"
"filename": "title"
- name: type
type: select
label: Order requested from site
default: "DESC"
options:
"DESC": "desc"
"ASC": "asc"
2019-12-19 21:50:28 +00:00
login:
path: login.php
method: form
form: form[action="login.php?returnto=index.php"]
inputs:
uid: "{{ .Config.username }}"
pwd: "{{ .Config.password }}"
error:
- selector: div.errorSummary
message:
selector: div.errorSummary ul li
test:
path: index.php
selector: a[href="logout.php"]
2019-12-19 21:50:28 +00:00
search:
paths:
- path: torrents.php
inputs:
2020-10-14 22:07:53 +00:00
search: "{{ if or (.Query.Artist) (.Query.Album) }}{{ or (.Query.Artist) (.Query.Album) }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 all, 1 active, 2 dead, 3 seedwanted
active: 0
2020-10-14 22:07:53 +00:00
# 0 title, 1 title+descr, 2 title+subgen
options: 0
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"
rows:
selector: table.lista[width="100%"] tbody tr:has(a[href^="download.php?id="])
fields:
2020-10-14 22:07:53 +00:00
category:
text: Music
title:
selector: td a[href^="details.php?id="]
details:
selector: td a[href^="details.php?id="]
attribute: href
comments:
selector: td a[href^="details.php?id="]
attribute: href
download:
selector: td a[href^="download.php?id="]
attribute: href
# dates come in two flavours:
date:
# 13/10/2018
selector: td:nth-child(6):contains("/")
optional: true
filters:
2020-10-14 22:07:53 +00:00
- name: append
args: " +00:00" # auto adjusted by site account profile
- name: dateparse
2020-10-14 22:07:53 +00:00
args: "02/01/2006 -07:00"
date:
# 1 hour ago, 2 days ago, 3 weeks ago etc
selector: td:nth-child(6):not(:contains("/"))
optional: true
filters:
- name: timeago
size:
selector: td:nth-child(7)
seeders:
selector: td:nth-child(9)
leechers:
selector: td:nth-child(10)
grabs:
selector: td:nth-child(11)
downloadvolumefactor:
text: 1
uploadvolumefactor:
text: 1
2020-10-14 22:07:53 +00:00
minimumratio:
text: 1.0
minimumseedtime:
# 1 day (as seconds = 24 x 60 x 60)
text: 86400
2020-01-19 19:36:57 +00:00
# BtitTracker (customised)