-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
netlab.yml
118 lines (111 loc) · 3.19 KB
/
netlab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
id: 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]
tv-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:
# there is suposed to be a gold where ul is counted at 100% and dl counted for 35% but I've not seen it yet
text: 1
uploadvolumefactor:
text: 1
minimumratio:
text: 0.15
# engine n/a