mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-03 08:57:46 +02:00
Move Definitions to Jackett.Common (#2085)
This commit is contained in:
84
src/Jackett.Common/Definitions/hdbits.yml
Normal file
84
src/Jackett.Common/Definitions/hdbits.yml
Normal file
@@ -0,0 +1,84 @@
|
||||
---
|
||||
site: hdbits
|
||||
name: HDBits
|
||||
description: "Best HD Tracker"
|
||||
language: en-us
|
||||
type: private
|
||||
encoding: UTF-8
|
||||
links:
|
||||
- https://hdbits.org
|
||||
|
||||
caps:
|
||||
categorymappings:
|
||||
- {id: 1, cat: "Movies", desc: "Movie"}
|
||||
- {id: 2, cat: "TV", desc: "TV"}
|
||||
- {id: 3, cat: "TV/Documentary", desc: "Documentary"}
|
||||
- {id: 4, cat: "Audio", desc: "Music"}
|
||||
- {id: 5, cat: "TV/Sport", desc: "Sport"}
|
||||
- {id: 6, cat: "Audio", desc: "Audio Track"}
|
||||
- {id: 7, cat: "XXX", desc: "XXX"}
|
||||
- {id: 8, cat: "Other", desc: "Misc/Demo"}
|
||||
|
||||
modes:
|
||||
search: [q]
|
||||
|
||||
login:
|
||||
path: /login
|
||||
method: form
|
||||
form: form
|
||||
inputs:
|
||||
uname: "{{ .Config.username }}"
|
||||
password: "{{ .Config.password }}"
|
||||
error:
|
||||
- selector: table.main:contains("Login Failed!")
|
||||
test:
|
||||
path: my.php
|
||||
|
||||
download:
|
||||
selector: a[href^="/download.php"]
|
||||
|
||||
search:
|
||||
paths:
|
||||
- path: browse.php
|
||||
inputs:
|
||||
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
|
||||
search: "{{ .Query.Keywords }}"
|
||||
rows:
|
||||
selector: table#torrent-list > tbody > tr:has(a[href^="/details.php?id="])
|
||||
fields:
|
||||
category:
|
||||
selector: a[href^="?cat="]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: querystring
|
||||
args: cat
|
||||
title:
|
||||
selector: td:nth-child(3) a
|
||||
download:
|
||||
selector: a[href^="/download.php"]
|
||||
attribute: href
|
||||
details:
|
||||
selector: a[href^="/details.php?id="]
|
||||
attribute: href
|
||||
grabs:
|
||||
selector: td:nth-child(7) a
|
||||
size:
|
||||
selector: td:nth-child(6)
|
||||
seeders:
|
||||
selector: td:nth-child(8)
|
||||
leechers:
|
||||
selector: td:nth-child(9)
|
||||
date:
|
||||
selector: td:nth-child(5)
|
||||
filters:
|
||||
- name: append
|
||||
args: " ago"
|
||||
downloadvolumefactor:
|
||||
case:
|
||||
"a[title=\"25% Free Leech: only 75% of the download is counted.\"]": "0.25"
|
||||
"a[title=\"50% Free Leech: only half the download is counted.\"]": "0.5"
|
||||
"a[title=\"100% FL: no download is counted.\"]": "0"
|
||||
"*": "1"
|
||||
uploadvolumefactor:
|
||||
case:
|
||||
"*": "1"
|
Reference in New Issue
Block a user