From cf8011f2b86f92f766d92731c6f6e94323a9feec Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 18 Jun 2019 14:06:17 +1200 Subject: [PATCH] add nbtorrents as Indian private site. resolves #5337 --- README.md | 1 + src/Jackett.Common/Definitions/nbtorrents.yml | 121 ++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 src/Jackett.Common/Definitions/nbtorrents.yml diff --git a/README.md b/README.md index 022432c8f..28d144576 100644 --- a/README.md +++ b/README.md @@ -270,6 +270,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * myAmity * MySpleen * NCore + * NBTorrents * Nebulance (NBL) (TransmiTheNet) * New Real World * Norbits diff --git a/src/Jackett.Common/Definitions/nbtorrents.yml b/src/Jackett.Common/Definitions/nbtorrents.yml new file mode 100644 index 000000000..816444425 --- /dev/null +++ b/src/Jackett.Common/Definitions/nbtorrents.yml @@ -0,0 +1,121 @@ +--- + 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] + + login: + path: login.php + method: form + form: form[action="takelogin.php"] + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + submitme: "X" + 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: + $raw: "{{range .Categories}}c{{.}}=1&{{end}}" + search: "{{ .Keywords }}" + searchin: "title" + incldead: 1 + "only_free": 0 + + rows: + selector: table.mainouter tr table tr:has(a[href^="download.php?torrent="]) + filters: + - name: andmatch + 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 + args: "([\\d]+)" + seeders: + selector: td:nth-of-type(10) + leechers: + selector: td:nth-of-type(11) + downloadvolumefactor: + case: + "img[title=\"Free Torrent\"]": "0" # torrent specific free leech (icon)? + "a.info:contains(\"Free\")": "0" # global freeleech note? + "*": "1" + uploadvolumefactor: + text: "1"