Jackett/src/Jackett.Common/Definitions/awesomehd.yml

72 lines
1.7 KiB
YAML

---
site: awesomehd
name: Awesome-HD
description: "An HD tracker"
language: en-us
type: private
encoding: UTF-8
links:
- https://awesome-hd.me/
caps:
categorymappings:
- {id: 1, cat: Movies/HD, desc: "Movies"}
- {id: 2, cat: TV/HD, desc: "TV-Shows"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
login:
path: login.php
method: form
form: form#loginform
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
keeplogged: 1
error:
- selector: form#loginform .warning
test:
path: torrents.php
search:
paths:
- path: torrents.php
inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
searchstr: "{{ .Query.Keywords }}"
page: torrents
rows:
selector: table#torrent_table > tbody > tr.group, tr.torrent, tr.group_torrent:not(.edition_info)
fields:
download:
selector: a[href^="torrents.php?action=download&id="]
attribute: href
optional: true
details:
selector: a[href^="torrents.php?id="]
attribute: href
title:
selector: td:nth-child(3) > a
category:
selector: td:nth-child(2)
# files:
# selector: td:nth-child(4)
date:
selector: td:nth-last-child(5)
size:
selector: td:nth-last-child(4)
grabs:
selector: td:nth-last-child(3)
seeders:
selector: td:nth-last-child(2)
leechers:
selector: td:nth-last-child(1)
downloadvolumefactor:
case:
"*": "1"
uploadvolumefactor:
case:
"*": "1"