Use current FTP search providers for 2.2.3
This commit is contained in:
+2
-2
@@ -9,8 +9,8 @@ target_include_directories(proz PRIVATE
|
||||
target_compile_definitions(proz PRIVATE
|
||||
HAVE_CONFIG_H=1 LOCALEDIR="${LOCALEDIR}" GLOBAL_CONF_FILE="${GLOBAL_CONF_FILE}")
|
||||
target_compile_options(proz PRIVATE
|
||||
$<$<COMPILE_LANG_AND_ID:C,GNU,Clang>:-Wall;-Wextra>
|
||||
$<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:-Wall;-Wextra>)
|
||||
$<$<COMPILE_LANG_AND_ID:C,GNU,Clang>:-Wall;-Wextra;-Wno-unused-parameter>
|
||||
$<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:-Wall;-Wextra;-Wno-unused-parameter>)
|
||||
target_link_libraries(proz PRIVATE libprozilla::prozilla ${CURSES_LIBRARIES})
|
||||
if(Intl_FOUND)
|
||||
target_link_libraries(proz PRIVATE Intl::Intl)
|
||||
|
||||
@@ -381,8 +381,8 @@ DL_Window::handle_info_thread()
|
||||
fetch_mirror_info
|
||||
(&connection->u,
|
||||
connection->main_file_size,
|
||||
"http://www.filesearching.com/cgi-bin/s",
|
||||
FILESEARCH_RU,
|
||||
"https://archie.disconnected-by-peer.at/api/search",
|
||||
ARCHIE_JSON,
|
||||
rt.ftps_mirror_req_n);
|
||||
}
|
||||
else if (rt.ftpsearch_server_id == 1)
|
||||
@@ -391,8 +391,9 @@ DL_Window::handle_info_thread()
|
||||
fetch_mirror_info
|
||||
(&connection->u,
|
||||
connection->main_file_size,
|
||||
"http://ftpsearch.elmundo.es:8000/ftpsearch",
|
||||
LYCOS, rt.ftps_mirror_req_n);
|
||||
"https://www.mmnt.ru/int/get",
|
||||
MAMONT_HTML,
|
||||
rt.ftps_mirror_req_n);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -42,7 +42,7 @@ FTPS_Window::FTPS_Window ()
|
||||
|
||||
void
|
||||
FTPS_Window::fetch_mirror_info(urlinfo * u, off_t file_size,
|
||||
char *ftps_loc,
|
||||
const char *ftps_loc,
|
||||
ftpsearch_server_type_t server_type,
|
||||
int num_req_mirrors)
|
||||
{
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
class FTPS_Window {
|
||||
public:
|
||||
FTPS_Window();
|
||||
void fetch_mirror_info(urlinfo *u, off_t file_size, char *ftps_loc,
|
||||
void fetch_mirror_info(urlinfo *u, off_t file_size, const char *ftps_loc,
|
||||
ftpsearch_server_type_t server_type,
|
||||
int num_req_mirrors);
|
||||
|
||||
|
||||
+1
-1
@@ -165,7 +165,7 @@ void set_defaults()
|
||||
rt.timeout.tv_sec = 90;
|
||||
rt.timeout.tv_usec = 0;
|
||||
//rt.use_ftpsearch=FALSE;
|
||||
rt.ftpsearch_server_id = 1;
|
||||
rt.ftpsearch_server_id = 0;
|
||||
/*Set the values necessary for libprozilla */
|
||||
rt.display_mode = DISP_CURSES;
|
||||
set_runtime_values();
|
||||
|
||||
+2
-3
@@ -161,8 +161,7 @@ help(void)
|
||||
" --max-ftps-servers=n Request a max of n servers from ftpsearch (default 40)\n"
|
||||
" --min-size=n If a file is smaller than 'n'Kb, don't search, just download it\n"
|
||||
" --ftpsid=n The ftpsearch server to use\n"
|
||||
" (0=filesearching.com\n"
|
||||
" 1=ftpsearch.elmundo.es\n"
|
||||
" (0=archie.disconnected-by-peer.at, 1=www.mmnt.ru)\n"
|
||||
"\n"
|
||||
"Information Options:\n"
|
||||
" -L, --license Display software license\n"
|
||||
@@ -477,7 +476,7 @@ main(int argc, char **argv)
|
||||
|
||||
if (rt.ftpsearch_server_id < 0 || rt.ftpsearch_server_id > 1)
|
||||
{
|
||||
printf("%s", _("The available servers are (0) filesearching.com and (1) ftpsearch.elmundo.es\n" "Please type proz --help for help\n"));
|
||||
printf("%s", _("The available servers are (0) archie.disconnected-by-peer.at and (1) www.mmnt.ru\n" "Please type proz --help for help\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user