Jackett/src/Jackett.Common/Definitions/beyond-hd.yml

139 lines
3.4 KiB
YAML
Raw Normal View History

2019-05-08 23:45:34 +00:00
---
site: beyond-hd
name: Beyond-HD
description: "Without BeyondHD, your HDTV is just a TV"
language: en-us
type: private
encoding: UTF-8
links:
- https://beyond-hd.me/
caps:
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: TV, desc: "TV"}
modes:
search: [q, imdbid]
2019-05-08 23:45:34 +00:00
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
2019-12-13 06:07:50 +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: "created_at"
options:
"created_at": "created"
"seeders": "seeders"
"size": "size"
"name": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
2019-05-08 23:45:34 +00:00
login:
path: login
method: form
form: form[action$="/login"]
captcha:
type: text
selector: div[style*="#999999;"]
input: key
2019-05-08 23:45:34 +00:00
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
2019-11-11 04:28:21 +00:00
remember: on
selectorinputs:
_token:
selector: input[name="_token"]
attribute: value
2019-05-08 23:45:34 +00:00
error:
- selector: form[action$="/login"] .text-red
- selector: script:contains("toastr.error")
message:
selector: script:contains("toastr.error")
# test:
# path: torrents
2019-05-08 23:45:34 +00:00
search:
paths:
- path: torrents
2019-05-08 23:45:34 +00:00
inputs:
2019-12-13 06:07:50 +00:00
$raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
search: "{{ if .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
2019-05-08 23:45:34 +00:00
description: ""
uploader: ""
imdb: "{{ .Query.IMDBIDShort }}"
tmdb: ""
2019-12-13 06:07:50 +00:00
sorting: "{{ .Config.sort }}"
direction: "{{ .Config.type }}"
qty: 100
2019-12-13 06:07:50 +00:00
2019-05-08 23:45:34 +00:00
rows:
selector: table > tbody > tr
after: 1
2019-12-13 06:07:50 +00:00
2019-05-08 23:45:34 +00:00
fields:
_category:
2019-05-08 23:45:34 +00:00
selector: a[href*="/categories/"]
optional: true
2019-05-08 23:45:34 +00:00
attribute: href
filters:
- name: regexp
args: "/categories/.*?\\.(\\d+)"
category:
text: "{{if .Result._category}}{{.Result._category}}{{else}}1{{end}}"
2019-05-08 23:45:34 +00:00
title:
selector: a.torrent-name
download:
selector: a[href*="/download/"]
attribute: href
details:
selector: a.torrent-name
attribute: href
banner:
optional: true
selector: div.torrent-poster img
attribute: src
filters:
- name: replace
args: ["/img/person.png", ""]
date:
selector: td:not(a[href$="/history"]) span.text-orange
filters:
- name: timeago
size:
selector: td span.text-blue
seeders:
selector: a[href$="/peers"] span.text-green
leechers:
selector: a[href$="/peers"] span.text-red
grabs:
selector: a[href$="/history"]
2019-05-08 23:45:34 +00:00
imdb:
optional: true
selector: a[href*="www.imdb.com/title/tt"]
attribute: href
downloadvolumefactor:
case:
2019-12-13 06:07:50 +00:00
i[data-original-title="100% Free"]: 0
i[data-original-title="100% Free (Limited UL)"]: 0
i[data-original-title="25% Promo"]: 0.75
i[data-original-title="50% Promo"]: 0.5
i[data-original-title="75% Promo"]: 0.25
"*": 1
2019-05-08 23:45:34 +00:00
uploadvolumefactor:
text: 1
# UNIT3D