1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-30 11:47:28 +00:00

add netlab a Russian Private site. resolves #5874

This commit is contained in:
Garfield69 2019-08-21 10:06:00 +12:00
parent 15634d3cd9
commit d343046e61
2 changed files with 113 additions and 1 deletions

View file

@ -295,9 +295,10 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
* MyAnonamouse (MAM)
* myAmity
* MySpleen
* NCore
* NBTorrents
* NCore
* Nebulance (NBL) (TransmiTheNet)
* NetLab
* New Real World
* Norbits
* NordicBits (NB)

View file

@ -0,0 +1,111 @@
---
site: netlab
name: NetLab
description: "NetLab is a RUSSIAN Private Torrent Tracker"
language: ru-ru
type: private
encoding: windows-1251
links:
- https://torrent.e2k.ru/
caps:
categorymappings:
- {id: 1, cat: Movies/DVD, desc: "DVD5"}
- {id: 4, cat: Movies/DVD, desc: "DVD9"}
- {id: 5, cat: Movies/WEBDL, desc: "MPEG/AVI"}
- {id: 6, cat: Audio, desc: "Музыка (Music)"}
- {id: 7, cat: PC/Games, desc: "Игры (Games)"}
- {id: 9, cat: PC/0day, desc: "Программы (Apps)"}
- {id: 10, cat: TV/HD, desc: "HDTV"}
- {id: 11, cat: Audio/Audiobook, desc: "Аудио Книги (Audiobooks)"}
- {id: 12, cat: Books/Ebook, desc: "Книги (Ebooks)"}
- {id: 14, cat: Other, desc: "Разное (Other)"}
- {id: 15, cat: Audio/Video, desc: "МузDVD (Music/Video)"}
modes:
search: [q]
movie-search: [q]
music-search: [q, album, artist, label, year]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: striprussian
type: checkbox
label: Strip Russian Letters
default: false
login:
path: takelogin.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
returnto: "/my.php"
error:
- selector: td.embedded:contains("Ошибка")
test:
path: my.php
selector: a[href="logout.php"]
search:
paths:
# https://torrent.e2k.ru/browse.php?c1=1&c4=1&c10=1&incldead=0&search=
- path: browse.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}"
# 0 active 1 incldead 2 onlydead
incldead: 1
rows:
selector: table[border="1"][cellspacing="0"][cellpadding="5"] > tbody > tr:has(a[href^="details.php?id="])
fields:
category:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: a[href^="details.php?id="]
filters:
- name: re_replace
args: ["[\\:\\-\\/\\|]", " "]
- name: re_replace
args: ["(\\([А-Яа-я\\W]+\\))|(^[А-Яа-я\\W\\d]+\\/ )|([а-яА-Я \\-]+,+)|([а-яА-Я]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"]
details:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="download.php?id="]
attribute: href
magnet:
selector: a[href^="magnet:?xt="]
optional: true
attribute: href
files:
selector: td:nth-child(3)
date:
selector: td:nth-child(4)
filters:
- name: dateparse
args: "2006-01-0215:04:05"
size:
selector: td:nth-child(5)
grabs:
selector: td:nth-child(6)
filters:
- name: regexp
args: (\d+)
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
downloadvolumefactor:
text: 1
uploadvolumefactor:
text: 1