Jackett/src/Jackett/Definitions/torrenting.yml

87 lines
2.3 KiB
YAML
Raw Normal View History

2017-01-06 16:07:52 +00:00
---
site: torrenting
name: Torrenting
language: en-us
type: private
2017-01-06 16:07:52 +00:00
encoding: windows-1252
links:
- https://torrenting.com
caps:
2017-03-07 12:46:22 +00:00
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: Movies/DVD, desc: "Movies/DVD-R"}
- {id: 3, cat: Movies/BluRay, desc: "BluRay Movies"}
- {id: 4, cat: TV/SD, desc: "TV/SD-x264"}
- {id: 5, cat: TV/HD, desc: "TV/X264 HD"}
- {id: 11, cat: Movies/HD, desc: "Movies/HD"}
- {id: 18, cat: TV, desc: "TV/Packs"}
- {id: 21, cat: Console, desc: "Games/Consoles"}
- {id: 26, cat: Audio/Video, desc: "Music/Videos"}
- {id: 27, cat: Audio, desc: "Music/Audio"}
- {id: 29, cat: TV/Anime, desc: "Anime/Toons"}
- {id: 30, cat: Books, desc: "Books"}
- {id: 34, cat: PC/0day, desc: "Applications/0-day"}
- {id: 35, cat: PC/Games, desc: "Games/PC"}
- {id: 40, cat: XXX, desc: "XXX"}
- {id: 47, cat: Movies, desc: "Movies/Packs"}
- {id: 49, cat: Movies/HD, desc: "x265 (HEVC)"}
2017-01-06 16:07:52 +00:00
modes:
search: [q]
tv-search: [q, season, ep]
login:
path: login.php
method: form
form: form[action="secure.php"]
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: td.embedded:has(h2:contains("failed"))
test:
path: browse.php
search:
path: browse.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}"
incldead: 1
rows:
selector: table#torrentsTable > tbody > tr.torrentsTableTR
fields:
download:
selector: a[href^="download.php/"]
attribute: href
title:
selector: a.nameLink
details:
selector: a.nameLink
attribute: href
category:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
date:
selector: div.uploaded
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
size:
selector: td:nth-child(6)
downloadvolumefactor:
text: "1"
downloadvolumefactor:
case:
"span:contains(\"Freeleech\")": "0"
"*": "1"
uploadvolumefactor:
case:
"*": "1"