diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/html.c | 4 | ||||
-rw-r--r-- | src/main.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -362,11 +362,13 @@ static int download_html_items_in_reverse(const char *plugin_filepath, Buffer *d if(result != 0) fprintf(stderr, "Failed while downloading html, url: %s\n", download_items_it->link); - const char *notify_args[] = { "notify-send", "-u", result == 0 ? "normal" : "critical", "--", result == 0 ? "Download finished" : "Download failed", notify_msg, NULL }; + const char *notify_args[] = { "notify-send", "-u", result == 0 ? "normal" : "critical", "-t", "10000", "--", result == 0 ? "Download finished" : "Download failed", notify_msg, NULL }; program_exec(notify_args, NULL, NULL); if(result != 0) break; + + fprintf(stderr, "Download finished for html item: %s (title: %s)\n", download_items_it->link, notify_msg); added_download_items[download_item_index] = download_items_it; // TODO: What if the download is so fast two items have the same timestamp? Maybe substract by MAX_UPDATE_ITEMS and then add 1 each loop, @@ -481,7 +481,7 @@ static void torrent_list_check_new_downloads_callback(int id, const char *name, if(is_finished) { if(id < unfinished_torrents->size && unfinished_torrents->items[id] == 1) { unfinished_torrents->items[id] = 0; - const char *notify_args[] = { "notify-send", "-u", "normal", "--", "Download finished", name, NULL }; + const char *notify_args[] = { "notify-send", "-u", "normal", "-t", "10000", "--", "Download finished", name, NULL }; program_exec(notify_args, NULL, NULL); } } else { @@ -720,7 +720,7 @@ static void command_cleanup(int argc, char **argv, const char *rss_config_dir, c } for(;;) { - fprintf(stderr, "==> Media to stop tracking: (in number range, eg: 10, \"1-3\")\n"); + fprintf(stderr, "==> Media to stop tracking: (eg: 10, 1-3)\n"); fprintf(stderr, "==> "); fflush(stderr); |