diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-26 19:06:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-26 19:06:12 +0200 |
commit | 2ea39b359ac53912c7a1c748e2f04aa1a6336f1f (patch) | |
tree | 27d366906d53eb6661b83ab09a4a4a440e809a03 /src/html.c | |
parent | 0c49bfeeefc0b63c2a486948460435c66a36faf9 (diff) |
misc, dont show notification for too long
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 4 |
1 files changed, 3 insertions, 1 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, |