Save URLs to disk on-the-fly and provide an option for toggling it

This commit is contained in:
Berke Viktor
2012-10-13 10:03:39 +02:00
parent d4f3738ca8
commit ca3fa043f0
7 changed files with 43 additions and 18 deletions

View File

@ -489,9 +489,10 @@ static const setting logging_settings[] =
{ST_LABEL, N_("See the strftime manpage for details.")},
#endif
{ST_HEADER, N_("URL Grabber"),0,0,0},
{ST_HEADER, N_("URLs"),0,0,0},
{ST_TOGGLE, N_("Enable logging of URLs to disk"), P_OFFINTNL(url_logging), 0, 0, 0},
{ST_TOGGLE, N_("Enable URL grabber"), P_OFFINTNL(url_grabber), 0, 0, 2},
{ST_NUMBER, N_("Maximum number of URLs:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999},
{ST_NUMBER, N_("Maximum number of URLs to grab:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999},
{ST_END, 0, 0, 0, 0, 0}
};

View File

@ -138,7 +138,9 @@ static void
url_save_callback (void *arg1, char *file)
{
if (file)
url_save (file, "w", TRUE);
{
url_save_tree (file, "w", TRUE);
}
}
static void