-
Notifications
You must be signed in to change notification settings - Fork 117
/
SpotCategories.php
279 lines (268 loc) · 7.04 KB
/
SpotCategories.php
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<?php
class SpotCategories {
public static $_head_categories =
Array(0 => "Beeld",
1 => "Geluid",
2 => "Spellen",
3 => "Applicaties");
public static $_headcat_subcat_mapping =
Array(0 => 'd',
1 => 'd',
2 => 'c',
3 => 'b');
public static $_subcat_descriptions =
Array(0 =>
Array('a' => 'Formaat',
'b' => 'Bron',
'c' => 'Taal',
'd' => 'Genre'),
1 =>
Array('a' => 'Formaat',
'b' => 'Bron',
'c' => 'Bitrate',
'd' => 'Genre'),
2 =>
Array('a' => 'Platform',
'b' => 'Formaat',
'c' => 'Genre'),
3 =>
Array('a' => 'Platform',
'b' => 'Genre')
);
public static $_categories =
Array(0 =>
Array('a' =>
Array(0 => "DivX",
1 => "WMV",
2 => "MPG",
3 => "DVD5",
4 => "HD Overig",
5 => "eBook",
6 => "Blu-ray",
7 => "HD-DVD",
8 => "WMVHD",
9 => "x264HD",
10 => "DVD9"),
'b' =>
Array(0 => "CAM",
1 => "(S)VCD",
2 => "Promo",
3 => "Retail",
4 => "TV",
5 => "",
6 => "Satelliet",
7 => "R5",
8 => "Telecine",
9 => "Telesync"),
'c' =>
Array(0 => "Geen ondertitels",
1 => "Nederlands ondertiteld (extern)",
2 => "Nederlands ondertiteld (ingebakken)",
3 => "Engels ondertiteld (extern)",
4 => "Engels ondertiteld (ingebakken)",
5 => "",
6 => "Nederlands ondertiteld (instelbaar)",
7 => "Engels ondertiteld (instelbaar)",
8 => "Fout!",
9 => "Fout",
10 => "Engels gesproken",
11 => "Nederlands gesproken",
12 => "Duits gesproken",
13 => "Frans gesproken",
14 => "Spaans gesproken"),
'd' =>
Array(0 => "Actie",
1 => "Avontuur",
2 => "Animatie",
3 => "Cabaret",
4 => "Komedie",
5 => "Misdaad",
6 => "Documentaire",
7 => "Drama",
8 => "Familiefilm",
9 => "Fantasiefilm",
10 => "Film Noir",
11 => "TV Series",
12 => "Horror",
13 => "Muziek",
14 => "Musical",
15 => "Mysterie",
0x10 => "Romantiek",
0x11 => "Science Fiction",
0x12 => "Sport",
0x13 => "Korte film",
20 => "Thriller",
0x15 => "Oorlog",
0x16 => "Western",
0x17 => "Erotiek (hetero)",
0x18 => "Erotiek (gay mannen)",
0x19 => "Erotiek (gay vrouwen)",
0x1a => "Erotiek (bi)",
0x1b => "",
0x1c => "Asian",
0x1d => "Anime",
30 => "Cover",
0x1f => "Comics",
0x20 => "Cartoons",
0x21 => "Kinderfilm")
),
1 => Array(
'a' =>
Array(0 => "MP3",
1 => "WMA",
2 => "WAV",
3 => "OGG",
4 => "Losless",
5 => "DTS",
6 => "AAC",
7 => "APE",
8 => "FLAC"),
'b' =>
Array(0 => "CD",
1 => "Radio",
2 => "Compilatie",
3 => "DVD",
4 => "",
5 => "Vinyl"),
'c' =>
Array(0 => "Variabel",
1 => "< 96kbit",
2 => "96kbit",
3 => "128kbit",
4 => "160kbit",
5 => "192kbit",
6 => "256kbit",
7 => "320kbit",
8 => "Lossless",
9 => ""),
'd' =>
Array(0 => "Blues/Folk",
1 => "Compilatie",
2 => "Cabaret",
3 => "Dance",
4 => "Diversen",
5 => "Hardcore",
6 => "Internationaal",
7 => "Jazz",
8 => "Kinder/Jeugd",
9 => "Klassiek",
10 => "Kleinkunst",
11 => "Nederlands",
12 => "New Age",
13 => "Pop",
14 => "R&B/Soul",
15 => "Hip hop",
0x10 => "Reggae",
0x11 => "Religieus",
0x12 => "Rock",
0x13 => "Soundtracks",
20 => "",
0x15 => "Jumpstyle",
0x16 => "Asian",
0x17 => "Disco",
0x18 => "Oldskool",
0x19 => "Metal",
0x1a => "Country")
),
2 => Array(
'a' =>
Array(0 => "Windows",
1 => "Macintosh",
2 => "Linux",
3 => "Playstation",
4 => "Playstation 2",
5 => "PSP",
6 => "Xbox",
7 => "Xbox 360",
8 => "Gameboy Advance",
9 => "Gamecube",
10 => "Nintendo DS",
11 => "Nintento Wii",
12 => "Playstation 3",
13 => "Windows Phone",
14 => "iOs",
15 => "Android"),
'b' =>
Array(0 => "ISO",
1 => "Rip",
2 => "DVD",
3 => "Addon",
4 => ""),
'c' =>
Array(0 => "Actie",
1 => "Avontuur",
2 => "Strategie",
3 => "Rollenspel",
4 => "Simulatie",
5 => "Race",
6 => "Vliegen",
7 => "Shooter",
8 => "Platform",
9 => "Sport",
10 => "Kinder/jeugd",
11 => "Puzzel",
12 => ""),
),
3 => Array(
'a' =>
Array(0 => "Windows",
1 => "Macintosh",
2 => "Linux",
3 => "OS/2",
4 => "Windows Phone",
5 => "Navigatiesystemen",
6 => "iOs",
7 => "Android"),
'b' =>
Array(0 => "Audio bewerking",
1 => "Video bewerking",
2 => "Grafisch design",
3 => "CD/DVD Tools",
4 => "Media spelers",
5 => "Rippers & Encoders",
6 => "Plugins",
7 => "Database tools",
8 => "Email software",
9 => "Fotobewerking",
10 => "Screensavers",
11 => "Skin software",
12 => "Drivers",
13 => "Browsers",
14 => "Download managers",
15 => "File sharing",
0x10 => "Usenet software",
0x11 => "RSS Readers",
0x12 => "FTP software",
0x13 => "Firewalls",
20 => "Antivirus software",
0x15 => "Antispyware software",
0x16 => "Optimalisatiesoftware",
0x17 => "Beveiligingssoftware",
0x18 => "Systeemsoftware",
0x19 => "")
)
);
static function Cat2Desc($hcat, $cat) {
$catList = explode("|", $cat);
$cat = $catList[0];
if (empty($cat[0])) {
return '';
} # if
$type = $cat[0];
$nr = substr($cat, 1);
if (!isset(self::$_categories[$hcat][$type][$nr])) {
return "-";
} else {
return self::$_categories[$hcat][$type][$nr];
} # if
}
static function SubcatDescription($hcat, $ch) {
return self::$_subcat_descriptions[$hcat][$ch];
} # func SubcatDescription
static function SubcatNumberFromHeadcat($hcat) {
return self::$_headcat_subcat_mapping[$hcat];
} # SubcatNumberFromHeadcat
static function HeadCat2Desc($cat) {
return self::$_head_categories[$cat];
} # func. Cat2Desc
}