-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
filebase.yml
205 lines (199 loc) · 7.3 KB
/
filebase.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
---
id: filebase
name: Filebase
description: "Filebase is a RUSSIAN Public Torrent Tracker for MOVIES / TV / GENERAL"
language: ru-ru
type: public
encoding: UTF-8
links:
- http://www.filebase.ws/ # https is not supported ERR_CONNECTION_REFUSED
caps:
categorymappings:
- {id: cartoons, cat: Movies, desc: "Мультики (cartoons)"}
- {id: tv, cat: TV, desc: "ТВ Передача (tv)"}
- {id: sport, cat: Movies, desc: "Спорт (sport)"}
- {id: action, cat: Movies, desc: "Боевик (action)"}
- {id: comedy, cat: Movies, desc: "Комедия (comedy)"}
- {id: thriller, cat: Movies, desc: "Триллер (thriller)"}
- {id: classic, cat: Movies, desc: "Классика (classic)"}
- {id: history, cat: Movies, desc: "Исторический (history)"}
- {id: mystic, cat: Movies, desc: "Мистика (mystic)"}
- {id: sci-fi, cat: Movies, desc: "Фантастика (sci-fi)"}
- {id: horror, cat: Movies, desc: "Ужасы (horror)"}
- {id: drama, cat: Movies, desc: "Драма (drama)"}
- {id: adventure, cat: Movies, desc: "Приключения (adventure)"}
- {id: detective, cat: Movies, desc: "Детектив (detective)"}
- {id: concert, cat: Movies, desc: "Концерт (concert)"}
- {id: anime, cat: TV/Anime, desc: "Аниме (anime)"}
- {id: epic, cat: Movies, desc: "Мелодрама (epic)"}
- {id: documental, cat: TV/Documentary, desc: "Док. Фильм (documental)"}
- {id: serials, cat: TV, desc: "Сериал (serials)"}
- {id: fantasy, cat: Movies, desc: "Фентези (fantasy)"}
- {id: war, cat: Movies, desc: "Военный (war)"}
- {id: family, cat: Movies, desc: "Семейный (family)"}
- {id: tales, cat: Movies, desc: "Сказка (tales)"}
- {id: catastroph, cat: Movies, desc: "Катастрофа (catastroph)"}
- {id: games, cat: Console, desc: "Игры (games)"}
- {id: software, cat: PC, desc: "Программы (software)"}
- {id: videoclips, cat: Audio/Video, desc: "Видеоклип (videoclips)"}
- {id: wallpapers, cat: Other, desc: "Картинки (wallpapers)"}
- {id: eng-music, cat: Audio, desc: "Eng Музыка (eng-music)"}
- {id: rus-music, cat: Audio, desc: "Rus Музыка (rus-music)"}
- {id: books, cat: Books, desc: "Книги (books)"}
- {id: phone, cat: PC/Mobile-Other, desc: "Телефон (phone)"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]
settings:
- name: striprussian
type: checkbox
label: Strip Russian Letters
default: false
- name: cat
type: select
label: Category
default: 0
options:
0: all
cartoons: "Мультики (cartoons)"
tv: "ТВ Передача (tv)"
sport: "Спорт (sport)"
action: "Боевик (action)"
comedy: "Комедия (comedy)"
thriller: "Триллер (thriller)"
classic: "Классика (classic)"
history: "Исторический (history)"
mystic: "Мистика (mystic)"
sci-fi: "Фантастика (sci-fi)"
horror: "Ужасы (horror)"
drama: "Драма (drama)"
adventure: "Приключения (adventure)"
detective: "Детектив (detective)"
concert: "Концерт (concert)"
anime: "Аниме (anime)"
epic: "Мелодрама (epic)"
documental: "Док. Фильм (documental)"
serials: "Сериал (serials)"
fantasy: "Фентези (fantasy)"
war: "Военный (war)"
family: "Семейный (family)"
tales: "Сказка (tales)"
catastroph: "Катастрофа (catastroph)"
games: "Игры (games)"
software: "Программы (software)"
videoclips: "Видеоклип (videoclips)"
wallpapers: "Картинки (wallpapers)"
eng-music: "Eng Музыка (eng-music)"
rus-music: "Rus Музыка (rus-music)"
books: "Книги (books)"
phone: "Телефон (phone)"
- name: sort
type: select
label: Sort requested from site
default: dateD
options:
dateD: created desc
dateA: created asc
seedD: seeders desc
seedA: seeders asc
sizeD: size desc
sizeA: size asc
search:
paths:
# http://www.filebase.ws/torrents/search/?s=dateD&t=all&c=serials&search=mandalorian
- path: torrents/search/
keywordsfilters:
- name: diacritics
args: replace
- name: re_replace # S01 to 1
args: ["(?i)\\bS0*(\\d+)\\b", "$1"]
- name: re_replace # S01E01 to 1 1
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1 $2"]
inputs:
# all, liveonly, deadonly
t: all
c: "{{ .Config.cat }}"
s: "{{ .Config.sort }}"
search: "{{ .Keywords }}"
rows:
selector: table#torrents_list > tbody > tr[data-fid]
fields:
category:
selector: td:nth-child(1) > a
attribute: href
filters:
- name: split
args: ["/", 2]
torrent_id:
selector: td:nth-child(2) > a
attribute: href
filters:
- name: split
args: ["/", 3]
title:
selector: td:nth-child(2)
filters:
# normalize to SXXEYY format
- name: replace
args: [" [/|:|\\||\\.] ", " "]
- name: replace
args: ["Кураж-Бамбей", "kurazh"]
- name: replace
args: ["Кубик в Кубе", "Kubik"]
- name: replace
args: ["Кравец", "Kravec"]
- name: re_replace
args: ["\\((\\d+)\\s+[Сс]езон:\\s+(?:(\\d+-*\\d*)\\s+[Сс]ери[ия]\\s+.*\\d+)\\)(.*)\\s\\[([12][0-9]{3})\\]\\s(.*)", "$3 - S$1E$2 - rus $5"]
- name: re_replace
args: ["\\((\\d+)\\s+[Сс]езон:\\s+(\\d+)\\s+[Сс]ери[ия]\\)(.*)\\s\\[([12][0-9]{3})\\]\\s(.*)", "S$1E$2 - rus $3"]
- name: re_replace
args: ["\\((?:(\\d+-*\\d*)\\s+[Сс]ери[ия]\\s+.*\\d+)\\)(.*)\\s\\[([12][0-9]{3})\\]\\s(.*)", "$2 - S1E$1 - rus $4"]
- name: re_replace
args: ["(\\([А-Яа-яЁё\\W]+\\))|(^[А-Яа-яЁё\\W\\d]+\\/ )|([а-яА-ЯЁё \\-]+,+)|([а-яА-ЯЁё]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"]
- name: re_replace
args: ["\\((\\d+[p|i])\\)", "$1"]
- name: replace
args: ["-Rip", "Rip"]
- name: replace
args: ["WEB-DL", "WEBDL"]
- name: replace
args: ["WEBDLRip", "WEBDL"]
- name: replace
args: ["HDTVRip", "HDTV"]
details:
selector: td:nth-child(2) > a
attribute: href
download:
text: "{{ .Config.sitelink }}download.php?id={{ .Result.torrent_id }}"
date:
selector: td:nth-child(4)
filters:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02/01/06 -07:00"
size:
selector: td:nth-child(5)
filters:
- name: replace
args: ["ТБ", "TB"]
- name: replace
args: ["ГБ", "GB"]
- name: replace
args: ["МБ", "MB"]
- name: replace
args: ["КБ", "KB"]
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
grabs:
selector: td:nth-child(9)
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a