1---
2id: nbtorrents
3name: NBTorrents
4description: "NBTorrents is an INDIAN Private site for MOVIES / TV / MUSIC"
5language: en-us
6type: private
7encoding: UTF-8
8links:
9  - https://www.nbtorrents.com/
10
11caps:
12  categorymappings:
13    - {id: 22, cat: TV/Anime, desc: "Anime"}
14    - {id: 26, cat: TV/Documentary, desc: "Documentaries"}
15    - {id: 1, cat: Movies/UHD, desc: "Movies UHD & BluRay"}
16    - {id: 3, cat: Movies/BluRay, desc: "Movies BDRips"}
17    - {id: 6, cat: Movies/DVD, desc: "Movies DVD"}
18    - {id: 7, cat: Movies/DVD, desc: "Movies DVDRip"}
19    - {id: 8, cat: Movies, desc: "Movies Pre"}
20    - {id: 2, cat: Movies, desc: "Movies Remux"}
21    - {id: 4, cat: Movies/WEB-DL, desc: "Movies Web"}
22    - {id: 5, cat: Movies/WEB-DL, desc: "Movies WebRip"}
23    - {id: 15, cat: Audio/Lossless, desc: "Music FLAC"}
24    - {id: 17, cat: Audio/MP3, desc: "Music MP3"}
25    - {id: 18, cat: Audio, desc: "Music Pack"}
26    - {id: 20, cat: Audio, desc: "Music Podcast"}
27    - {id: 19, cat: Audio/Video, desc: "Music Video"}
28    - {id: 16, cat: Audio, desc: "Music Web"}
29    - {id: 25, cat: TV/Sport, desc: "Sports"}
30    - {id: 10, cat: TV/UHD, desc: "TV UHD & BluRay"}
31    - {id: 11, cat: TV, desc: "TV BDRips"}
32    - {id: 14, cat: TV, desc: "TV packs"}
33    - {id: 12, cat: TV/WEB-DL, desc: "TV Web"}
34    - {id: 13, cat: TV/WEB-DL, desc: "TV WebRips"}
35
36  modes:
37    search: [q]
38    tv-search: [q, season, ep]
39    movie-search: [q]
40    music-search: [q]
41
42settings:
43  - name: username
44    type: text
45    label: Username
46  - name: password
47    type: password
48    label: Password
49  - name: freeleech
50    type: checkbox
51    label: Search freeleech only
52    default: false
53  - name: sort
54    type: select
55    label: Sort requested from site
56    default: 4
57    options:
58      4: created
59      7: seeders
60      5: size
61      1: title
62  - name: type
63    type: select
64    label: Order requested from site
65    default: desc
66    options:
67      desc: desc
68      asc: asc
69
70login:
71  path: login.php
72  method: form
73  form: form[action="takelogin.php"]
74  inputs:
75    username: "{{ .Config.username }}"
76    password: "{{ .Config.password }}"
77  error:
78    - selector: td.colhead:contains("failed")
79      message:
80        selector: table tr td.text
81  test:
82    path: browse.php
83    selector: a[href*="logout.php?hash_insert="]
84
85search:
86  paths:
87    - path: browse.php
88  inputs:
89    $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
90    search: "{{ .Keywords }}"
91    searchin: title
92    incldead: 1
93    only_free: "{{ if .Config.freeleech }}1{{ else }}0{{ end }}"
94    sort: "{{ .Config.sort }}"
95    type: "{{ .Config.type }}"
96
97  rows:
98    selector: table.mainouter tr table tr:has(a[href^="download.php?torrent="])
99    filters:
100      - name: andmatch
101
102  fields:
103    category:
104      selector: td a[href^="browse.php?cat="]
105      attribute: href
106      filters:
107        - name: querystring
108          args: cat
109    title:
110      selector: td a[href^="details.php?id="]
111    details:
112      selector: td a[href^="details.php?id="]
113      attribute: href
114    poster:
115      selector: td a[href^="details.php?id="]
116      attribute: onmouseover
117      filters:
118        - name: regexp
119          args: "src=\\\\'(.*?)\\\\' "
120    download:
121      selector: td a[href^="download.php?torrent="]
122      attribute: href
123    imdb:
124      selector: td a[href*="imdb.com/title/tt"]
125      attribute: href
126    files:
127      selector: td:nth-of-type(5)
128    date:
129      selector: td:nth-of-type(7)
130      filters:
131        - name: append
132          args: " +05:30" # IST
133        - name: dateparse
134          args: "Jan 2 2006 03:04 PM -07:00"
135    size:
136      selector: td:nth-of-type(8)
137    grabs:
138      selector: td:nth-of-type(9)
139      filters:
140        - name: regexp
141          args: (\d+)
142    seeders:
143      selector: td:nth-of-type(10)
144    leechers:
145      selector: td:nth-of-type(11)
146    downloadvolumefactor:
147      case:
148        "img[title=\"Free Torrent\"]": 0 # torrent specific free leech (icon)?
149        "a.info:contains(\"Free\")": 0 # global freeleech note?
150        "*": 1
151    uploadvolumefactor:
152      text: 1
153# engine n/a
154