restore nordichd a private site. resolves #6708

This commit is contained in:
Garfield69 2023-05-08 08:23:22 +12:00
parent 23bc0c7f13
commit 47c986f65d
3 changed files with 180 additions and 1 deletions

View File

@ -445,6 +445,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* Nebulance (NBL) (TransmiTheNet)
* NicePT
* NorBits
* NORDiCHD
* Ntelogo
* Old Toons World
* OpenCD [![(invite needed)][inviteneeded]](#)

View File

@ -0,0 +1,179 @@
---
id: nordichd
name: NORDiCHD
description: "NORDiCHD is a Mixed NORDIC Private Tracker for MOVIES / TV / GENERAL"
language: en-US
type: private
encoding: UTF-8
links:
- https://nordichd.org/
caps:
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 14, cat: Movies/SD, desc: "Movies DivX"}
- {id: 16, cat: Movies/SD, desc: "Movies CAM"}
- {id: 17, cat: Movies/HD, desc: "Movies HD"}
- {id: 17, cat: TV/HD, desc: "TV HD"}
- {id: 31, cat: Movies/BluRay, desc: "Movies BDRip"}
- {id: 6, cat: PC, desc: "Applications"}
- {id: 18, cat: PC/0day, desc: "Applications PC"}
- {id: 19, cat: PC/Mac, desc: "Applications Macintosh"}
- {id: 7, cat: Audio, desc: "Music"}
- {id: 20, cat: Audio/Video, desc: "Music Video"}
- {id: 21, cat: Audio/MP3, desc: "Music Mp3"}
- {id: 2, cat: Console, desc: "Games"}
- {id: 3, cat: Console/PS3, desc: "Games Sony PS"}
- {id: 4, cat: Console/Wii, desc: "Games Wii"}
- {id: 26, cat: Console/XBox, desc: "Games XboX"}
- {id: 27, cat: PC/Games, desc: "Games PC"}
- {id: 28, cat: Console/NDS, desc: "Games Nintendo"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
default: added
options:
added: created
seeders: seeders
size: size
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
- name: info_results
type: info
label: Search results
default: "If you are getting the error <b>Found no results while trying to browse this tracker</b> then first access the site with your browser and check that you are not being forced to change your password because it has expired after 180 days."
login:
path: ?p=home&pid=1
method: form
form: form#sls_form
submitpath: ajax/login.php
inputs:
action: login
loginbox_membername: "{{ .Config.username }}"
loginbox_password: "{{ .Config.password }}"
loginbox_remember: 1
selectorinputs:
securitytoken:
selector: "script:contains(\"stKey: \")"
filters:
- name: regexp
args: "stKey: \"(.+?)\","
error:
- selector: div.error
- selector: :contains("-ERROR-")
test:
path: ?p=home&pid=1
selector: div#member_info_bar
search:
paths:
# 7 results per page, but fetching more pages when results < 7 returns duplicates from each additional page.
- path: /
inputs:
p: torrents
pid: 32
$raw: "{{ range .Categories }}cid[]={{.}}&{{end}}"
keywords: "{{ .Keywords }}"
# name, description, both, uploader
search_type: name
"sortOptions[sortBy]": "{{ .Config.sort }}"
"sortOptions[sortOrder]": "{{ .Config.type }}"
# does not support imdbid search or have imdbid links in results.
error:
- selector: div.error:not(:contains("There are no results found."))
rows:
selector: "div.torrent-box[id^=\"torrent_\"]{{ if .Config.freeleech }}:has(img[src$=\"/torrent_free.png\"]){{ else }}{{ end }}"
fields:
category:
selector: a[href*="?p=torrents&pid=10&cid="]
attribute: href
filters:
- name: querystring
args: cid
title:
selector: a[href*="?p=torrents&pid=10&action=details&tid="]
details:
selector: a[href*="?p=torrents&pid=10&action=details&tid="]
attribute: href
download:
selector: a[href*="?p=torrents&pid=10&action=download&tid="]
attribute: href
poster:
selector: a[href*="data/torrents/torrent_images/"]
attribute: href
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
genre:
selector: div.torrentDetails > div:has(a[href*="&genre="])
filters:
- name: replace
args: ["Genre:", ""]
description:
text: "{{ .Result.genre }}"
size:
selector: a[rel="torrent_size"]
grabs:
selector: a[rel="times_completed"]
seeders:
selector: a[rel="torrent_seeders"]
leechers:
selector: a[rel="torrent_leechers"]
date_day:
selector: div.torrentOwner:contains("day")
# auto adjusted by site account profile
optional: true
filters:
- name: regexp
args: "Uploaded (.+?) by"
- name: fuzzytime
date_year:
selector: div.torrentOwner:contains("-")
# auto adjusted by site account profile
optional: true
filters:
- name: regexp
args: "Uploaded (.+?) by"
- name: dateparse
args: "dd-MM-yyyy HH:mm"
date_unix:
selector: div.torrentOwner abbr
optional: true
attribute: data-time
date:
text: "{{ if or .Result.date_day .Result.date_year .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_unix }}{{ else }}now{{ end }}"
downloadvolumefactor:
case:
img[src$="/torrent_free.png"]: 0
"*": 1
uploadvolumefactor:
text: 1
minimumratio:
text: 1.0
# TSUE 2.2

View File

@ -468,7 +468,6 @@ namespace Jackett.Updater
"Definitions/nforce.yml",
"Definitions/nitro.yml",
"Definitions/nnm-club.yml", // renamed to noname-club
"Definitions/nordichd.yml",
"Definitions/nordicplus.yml",
"Definitions/nostalgic.yml", // renamed to vhstapes
"Definitions/nyaa-pantsu.yml",