Jackett/src/Jackett.Common/Definitions/nbtorrents.yml

149 lines
4.1 KiB
YAML
Raw Normal View History

---
site: nbtorrents
name: NBTorrents
description: "NBTorrents is an INDIAN Private site for MOVIES / TV / MUSIC"
language: en-us
type: private
encoding: UTF-8
links:
- https://www.nbtorrents.com/
caps:
categorymappings:
- {id: 22, cat: TV/Anime, desc: "Anime"}
- {id: 26, cat: TV/Documentary, desc: "Documentaries"}
- {id: 1, cat: Movies/UHD, desc: "Movies UHD & BluRay"}
- {id: 3, cat: Movies/BluRay, desc: "Movies BDRips"}
- {id: 6, cat: Movies/DVD, desc: "Movies DVD"}
- {id: 7, cat: Movies/DVD, desc: "Movies DVDRip"}
- {id: 8, cat: Movies, desc: "Movies Pre"}
- {id: 2, cat: Movies, desc: "Movies Remux"}
- {id: 4, cat: Movies/WEBDL, desc: "Movies Web"}
- {id: 5, cat: Movies/WEBDL, desc: "Movies WebRip"}
- {id: 15, cat: Audio/Lossless, desc: "Music FLAC"}
- {id: 17, cat: Audio/MP3, desc: "Music MP3"}
- {id: 18, cat: Audio, desc: "Music Pack"}
- {id: 20, cat: Audio, desc: "Music Podcast"}
- {id: 19, cat: Audio/Video, desc: "Music Video"}
- {id: 16, cat: Audio, desc: "Music Web"}
- {id: 25, cat: TV/Sport, desc: "Sports"}
- {id: 10, cat: TV/UHD, desc: "TV UHD & BluRay"}
- {id: 11, cat: TV, desc: "TV BDRips"}
- {id: 14, cat: TV, desc: "TV packs"}
- {id: 12, cat: TV/WEB-DL, desc: "TV Web"}
- {id: 13, cat: TV/WEB-DL, desc: "TV WebRips"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
2019-12-17 19:35:34 +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: "4"
options:
"4": "created"
"7": "seeders"
"5": "size"
"1": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login:
path: login.php
method: form
form: form[action="takelogin.php"]
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: td.colhead:contains("failed")
message:
selector: table tr td.text
test:
path: browse.php
selector: a[href*="logout.php?hash_insert="]
search:
paths:
- path: browse.php
inputs:
2019-12-17 19:35:34 +00:00
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
2019-12-17 19:35:34 +00:00
searchin: title
incldead: 1
2019-12-17 19:35:34 +00:00
only_free: 0
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows:
selector: table.mainouter tr table tr:has(a[href^="download.php?torrent="])
filters:
- name: andmatch
2019-12-17 19:35:34 +00:00
fields:
category:
selector: td a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: td a[href^="details.php?id="]
details:
selector: td a[href^="details.php?id="]
attribute: href
banner:
selector: td a[href^="details.php?id="]
optional: true
attribute: onmouseover
filters:
- name: regexp
args: "src=\\\\\'(.*?)\\\\\' "
download:
selector: td a[href^="download.php?torrent="]
attribute: href
imdb:
selector: td a[href*="www.imdb.com/title/tt"]
optional: true
attribute: href
files:
selector: td:nth-of-type(5)
date:
selector: td:nth-of-type(7)
filters:
- name: dateparse
args: "Jan 2 2006 03:04 PM"
size:
selector: td:nth-of-type(8)
grabs:
selector: td:nth-of-type(9)
filters:
- name: regexp
2019-12-17 19:35:34 +00:00
args: (\d+)
seeders:
selector: td:nth-of-type(10)
leechers:
selector: td:nth-of-type(11)
downloadvolumefactor:
case:
2019-12-17 19:35:34 +00:00
"img[title=\"Free Torrent\"]": 0 # torrent specific free leech (icon)?
"a.info:contains(\"Free\")": 0 # global freeleech note?
"*": 1
uploadvolumefactor:
2019-12-17 19:35:34 +00:00
text: 1
2020-01-19 06:13:07 +00:00
# engine n/a