-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
p2pelite.yml
171 lines (164 loc) · 5.01 KB
/
p2pelite.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
id: p2pelite
name: P2PElite
description: "P2PElite is a Private Torrent Tracker for EBOOKS / AUDIOBOOKS"
language: en-us
type: private
encoding: UTF-8
links:
- https://p2pelite.com/
caps:
categorymappings:
- {id: 19, cat: PC, desc: "Apps"}
- {id: 11, cat: Audio/Audiobook, desc: "Audio Books"}
- {id: 40, cat: Books/Ebook, desc: "Best Sellers"}
- {id: 17, cat: Books/Ebook, desc: "Biographical"}
- {id: 27, cat: Books/Ebook, desc: "Business/Finance"}
- {id: 8, cat: Books/Ebook, desc: "Children"}
- {id: 30, cat: Books/Ebook, desc: "Classic"}
- {id: 2, cat: Books/Comics, desc: "Comics/GraphicNovels/Manga"}
- {id: 14, cat: Books/Ebook, desc: "Computer"}
- {id: 15, cat: Books/Ebook, desc: "Cookbooks"}
- {id: 22, cat: Books/Ebook, desc: "Crime/Thriller/Mystery"}
- {id: 10, cat: Books/Ebook, desc: "DIY"}
- {id: 6, cat: Books/Ebook, desc: "Educational"}
- {id: 12, cat: Books/Other, desc: "Educational Videos"}
- {id: 20, cat: Books/Ebook, desc: "Erotica/over 18"}
- {id: 23, cat: Books/Ebook, desc: "Fantasy"}
- {id: 1, cat: Books/Ebook, desc: "Fiction"}
- {id: 18, cat: Books/Ebook, desc: "Gardening"}
- {id: 21, cat: Books/Ebook, desc: "Health"}
- {id: 33, cat: Books/Ebook, desc: "Historical Fiction"}
- {id: 16, cat: Books/Ebook, desc: "History"}
- {id: 4, cat: Books/Ebook, desc: "Hobby/Pastimes"}
- {id: 29, cat: Books/Ebook, desc: "Horror"}
- {id: 5, cat: Books/Ebook, desc: "Language Learning"}
- {id: 7, cat: Books/Magazines, desc: "Magazines"}
- {id: 13, cat: Books/Other, desc: "Misc"}
- {id: 34, cat: Audio, desc: "Music"}
- {id: 37, cat: Books/Ebook, desc: "New Adult"}
- {id: 28, cat: Books/Ebook, desc: "Non-English"}
- {id: 3, cat: Books/Ebook, desc: "Non-Fiction/Reference"}
- {id: 24, cat: Books/Ebook, desc: "Paranormal Romance"}
- {id: 39, cat: Books/Ebook, desc: "Philosophy"}
- {id: 25, cat: Books/Ebook, desc: "Romance"}
- {id: 26, cat: Books/Ebook, desc: "SciFi"}
- {id: 9, cat: Books/Ebook, desc: "Teens"}
- {id: 32, cat: Other, desc: "torrent not modded"}
- {id: 35, cat: Books/Ebook, desc: "True Crime"}
- {id: 38, cat: Books/Ebook, desc: "Urban Fantasy"}
- {id: 31, cat: Books/Ebook, desc: "Western"}
modes:
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: "4"
options:
"4": "created"
"7": "seeders"
"5": "size"
"1": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login:
path: login.php
method: form
form: form[action="takelogin.php"]
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
returnto: "/"
perm_ssl: 1
error:
- selector: td.embedded:has(h2:contains("failed"))
- selector: td.embedded:has(h2:contains("Error"))
test:
path: index.php
selector: a[href^="./logout.php"]
search:
paths:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
# 0 active, 1 incldead, 2 onlydead, 3 new
incldead: 1
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows:
selector: "table[border=\"1\"][cellspacing=\"0\"][cellpadding=\"5\"] > tbody > tr:has(a[href^=\"download.php?torrent=\"]){{ if .Config.freeleech }}:has(a.info:contains(\"[FREE]\")){{ else }}{{ end }}"
fields:
category:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: a[href^="details.php?id="]
attribute: onmouseover
filters:
- name: regexp
args: "<b>(.+?)</b>"
details:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="download.php?torrent="]
attribute: href
banner:
selector: a[href^="details.php?id="]
attribute: onmouseover
filters:
- name: regexp
args: "src=\\\\'(.+?)\\\\'"
- name: replace
args: ["./pic/noposter.png", ""]
files:
selector: td:nth-last-child(8)
date:
selector: td:nth-last-child(6):contains("day")
optional: true
date:
selector: td:nth-last-child(6):not(:contains("day"))
optional: true
filters:
- name: dateparse
args: "Jan 2 2006 03:04 PM"
size:
selector: td:nth-last-child(5)
grabs:
selector: td:nth-last-child(4)
filters:
- name: regexp
args: (\d+)
seeders:
selector: td:nth-last-child(3)
leechers:
selector: td:nth-last-child(2)
downloadvolumefactor:
case:
a.info:contains("[FREE]"): 0
"*": 1
uploadvolumefactor:
text: 1
minimumratio:
text: 0.5
# TBDEV