Jackett/src/Jackett.Common/Definitions/nethd.yml

102 lines
2.7 KiB
YAML
Raw Normal View History

---
site: nethd
name: NetHD
description: "NetHD (VietTorrent) is a VIETNAMESE Private Torrent Tracker for HD MOVIES / TV"
language: vi-vn
type: semi-private
encoding: UTF-8
links:
- http://nethd.org/
caps:
categorymappings:
- {id: 401, cat: Movies, desc: "Movies"}
- {id: 402, cat: Audio, desc: "Music"}
- {id: 403, cat: PC/Games, desc: "Game"}
- {id: 404, cat: PC, desc: "Software"}
- {id: 405, cat: Other, desc: "Image"}
- {id: 406, cat: Books, desc: "Book"}
modes:
search: [q]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
login:
path: takelogin.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: form#loginform > span.warning
test:
path: torrents.php
ratio:
path: torrents.php
selector: div.user-info-extend > dl > dt:contains("Ratio:") + dd
search:
paths:
- path: torrents.php
inputs:
2019-05-11 23:05:27 +00:00
$raw: "{{range .Categories}}cat={{.}}&{{end}}"
search: "{{if .Query.IMDBID}}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
search_area: "{{ if .Query.IMDBID }}4{{else}}0{{end}}"
search_mode: 0
spstate: 0
inclbookmarked: 0
incldead: 1
rows:
selector: tr:has(td.name)
2017-11-13 17:10:55 +00:00
filters:
- name: andmatch
fields:
title:
2019-05-11 23:05:27 +00:00
selector: td.name > div > a[href*="-torrent-"][title]
attribute: title
category:
selector: td.category > a
attribute: href
filters:
- name: querystring
args: cat
details:
2019-05-11 23:05:27 +00:00
selector: td.name > div > a[href*="-torrent-"][title]
attribute: href
2019-05-11 23:05:27 +00:00
banner:
selector: td.name > a.poster-preview img
attribute: src
comments:
selector: a[href*="#comments"]
attribute: href
download:
2019-05-11 23:05:27 +00:00
selector: td.name > div > a[href*="-torrent-"][title]
attribute: href
filters:
2019-05-11 23:05:27 +00:00
- name: regexp
args: "-torrent-(\\d+).html"
- name: prepend
args: "download.php?id="
date:
selector: td:nth-child(5)
2019-05-11 23:05:27 +00:00
filters:
- name: timeago
size:
selector: td:nth-child(6)
2019-05-11 23:05:27 +00:00
seeders:
selector: td:nth-child(7)
2019-05-11 23:05:27 +00:00
leechers:
selector: td:nth-child(8)
2019-05-11 23:05:27 +00:00
grabs:
selector: td:nth-child(9)
downloadvolumefactor:
case:
"span.label:contains(\"Free\")": "0"
"span.label:contains(\"50%\")": "0.5"
2019-05-11 23:05:27 +00:00
"span.label:contains(\"30%\")": "0.7"
"*": "1"
uploadvolumefactor:
case:
"span.label:contains(\"2X\")": "2"
2016-12-09 15:21:56 +00:00
"*": "1"