-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
rotorrent.yml
170 lines (163 loc) · 5.11 KB
/
rotorrent.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
---
id: rotorrent
name: RoTorrent
description: "RoTorrent is a ROMANIAN Private Torrent Tracker for MOVIES / TV / GENERAL"
language: ro-RO
type: private
encoding: UTF-8
requestDelay: 2
links:
- https://rotorrent.ro/
caps:
categorymappings:
- {id: 18, cat: PC/0day, desc: "Apps: PC", default: true}
- {id: 55, cat: TV/Documentary, desc: "Docs: Docs", default: true}
- {id: 10, cat: PC/Games, desc: "Games: PC", default: true}
- {id: 53, cat: Other, desc: "Miscellaneous: Miscellaneous", default: true}
- {id: 58, cat: Movies/BluRay, desc: "Movies: 4K Blu-Ray", default: true}
- {id: 2, cat: Movies/SD, desc: "Movies: Divx/Xvid", default: true}
- {id: 52, cat: Movies/SD, desc: "Movies: Cam/TS/TC", default: true}
- {id: 54, cat: Movies/UHD, desc: "Movies: 4K", default: true}
- {id: 59, cat: Movies/BluRay, desc: "Movies: Blu-Ray", default: true}
- {id: 60, cat: Movies/HD, desc: "Movies: HD", default: true}
- {id: 62, cat: Movies/WEB-DL, desc: "Movies: WebDL/RIP", default: true}
- {id: 64, cat: Movies/DVD, desc: "Movies: DVD", default: true}
- {id: 65, cat: XXX, desc: "Movies: XXX", default: false}
- {id: 66, cat: TV/Anime, desc: "Movies: Anime", default: true}
- {id: 22, cat: Audio/MP3, desc: "Music: MP3", default: true}
- {id: 63, cat: Audio/Lossless, desc: "Music: FLAC", default: true}
- {id: 6, cat: TV, desc: "TV: TV Shows", default: true}
modes:
search: [q]
tv-search: [q, season, ep, imdbid, tmdbid, genre]
movie-search: [q, imdbid, tmdbid, genre]
music-search: [q, genre]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
default: id
options:
id: created
seeders: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
login:
path: account-login.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: "div[style^=\"color: red;\"]"
test:
path: index.php
selector: a[href="account-logout.php"]
search:
paths:
- path: torrents-search.php
categories: [18, 55, 10, 53, 58, 2, 52, 54, 59, 60, 62, 64, 66, 22, 63, 6]
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
# 0 active, 1 incldead, 2 onlydead
incldead: 1
# 0 all, 1 nofree, 2 onlyfree
freeleech: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 both, 1 local, 2 external
inclexternal: 0
# 0 all, 1 romanian, 2 english, 3 english and romanian
inclrosub: 0
- path: torrents-search1.php
categories: [65]
inputs:
search: "{{ if or .Query.IMDBID .Query.TMDBID }}{{ or .Query.IMDBID .Query.TMDBID }} {{ else }}{{ end }}{{ if .Query.Genre }}{{ .Query.Genre }} {{ else }}{{ end }}{{ .Keywords }}"
sort: "{{ .Config.sort }}"
order: "{{ .Config.type }}"
rows:
selector: table.ttable_headinner > tbody > tr
fields:
category:
selector: a[href*="cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: a[href^="torrents-details.php?id="] b
details:
selector: a[href^="torrents-details.php?id="]
attribute: href
filters:
- name: replace
args: ["&hit=1", ""] # avoid redirect
download:
text: "{{ .Result.details }}"
filters:
- name: replace
args: ["torrents-details", "download"]
poster:
selector: a[href^="torrents-details.php?id="]
attribute: onmouseover
filters:
- name: regexp
args: src=(.+?)></td>
date:
selector: td:nth-child(8)
filters:
- name: timeago
size:
selector: td:nth-child(3)
grabs:
selector: td:nth-child(7)
seeders:
selector: td:nth-child(5)
leechers:
selector: td:nth-child(6)
genre:
selector: a[href^="torrents-details.php?id="] font div.newt
filters:
- name: re_replace
args: ["(?i)(Cult Classic)", "Cult_Classic"]
- name: re_replace
args: ["(?i)(Science Fiction)", "Science_Fiction"]
- name: re_replace
args: ["(?i)(TV Movie)", "TV_Movie"]
description_subs:
optional: true
case:
img[src$="languages/unitestates.gif"]: Eng
img[src$="languages/romania.gif"]: Ro
img[src$="languages/roeng.gif"]: "Ro & Eng"
description:
text: "{{ if .Result.description_subs }}Subtitles: {{ .Result.description_subs }}</br>{{ else }}{{ end }}Genres: {{ .Result.genre }}"
downloadvolumefactor:
case:
img[src="images/free.png"]: 0
"*": 1
uploadvolumefactor:
case:
img[src="images/doubleupload.gif"]: 2
"*": 1
minimumratio:
text: 1.0
minimumseedtime:
# 4 days (as seconds = 4 x 24 x 60 x 60)
text: 345600
# TorrentTrader 3.0 Micro Edition