forked from pt209223/librs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRS_regex.h
45 lines (36 loc) · 1.96 KB
/
RS_regex.h
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
static const boost::regex rs_regex_correct_url(
"http://rapidshare.com/files/[0-9]*/[a-zA-Z0-9._\\-]*");
static const boost::regex rs_regex_not_available(
"This file has been deleted");
static const boost::regex rs_regex_illegal_file(
"This file is suspected to contain illegal content and has been blocked.");
static const boost::regex rs_regex_illegal_file2(
"Due to a violation of our terms of use, the file has been removed from the server.");
static const boost::regex rs_regex_not_found(
"The file could not be found.");
static const boost::regex rs_regex_try_later(
"Or try again in about ");
static const boost::regex rs_regex_server_busy(
"Currently a lot of users are downloading files");
static const boost::regex rs_regex_no_free_slots(
"There are no more download slots available for free users right now.");
static const boost::regex rs_regex_already_downloading(
"is already downloading a file.");
static const boost::regex rs_regex_reached_limit(
"You have reached the download limit for free-users");
// Tutaj szukamy urla, rozmiaru i czasu oczekiwania
static const boost::regex rs_regex_url(
"<form id=\"ff\" action=\"(http://[a-zA-Z0-9._/\\-]*)\" method=\"post\">");
static const boost::regex rs_regex_size(
"<p class=\"downloadlink\">http://rapidshare.com/files/[0-9]*/[a-zA-Z0-9._\\-]* <font style=\"[a-zA-Z0-9._;:,#\\- ]*\">\\| ([0-9]*) KB</font></p>");
static const boost::regex rs_regex_time(
"var c=([0-9]*);");
// Tutaj szukamy dwoch wartosci, adresu url do pliku i nazwy serwera na ktorym jest plik
static const boost::regex rs_regex_server(
"onclick=\"document.dlf.action=\\\\'(http://[a-zA-Z0-9._/\\-]*)\\\\';\" /> ([a-zA-Z0-9._\\-# ]*)<br />");
// Ulubione serwery
static const char *rs_favorites_servers[] = {
"TeliaSonera", "Cogent", "GlobalCrossing", "Teleglobe", "Deutsche Telekom",
"TeliaSonera #2", "GlobalCrossing #2", "Cogent #2", "Level(3)", "Level(3) #2",
"Level(3) #3", "Level(3) #4", NULL
};