aboutsummaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-26 19:06:12 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-26 19:06:12 +0200
commit2ea39b359ac53912c7a1c748e2f04aa1a6336f1f (patch)
tree27d366906d53eb6661b83ab09a4a4a440e809a03 /src/html.c
parent0c49bfeeefc0b63c2a486948460435c66a36faf9 (diff)
misc, dont show notification for too long
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index fc45843..572a396 100644
--- a/src/html.c
+++ b/src/html.c
@@ -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,