aboutsummaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
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 1bdd3de..e8ddd23 100644
--- a/src/html.c
+++ b/src/html.c
@@ -428,7 +428,9 @@ static int download_html_items_in_reverse(const char *plugin_filepath, Buffer *d
break;
const char *download_finished_args[] = { download_finished_script, "html", item_dir, NULL };
- program_exec(download_finished_args, NULL, NULL);
+ if(file_exists(download_finished_script) == 0)
+ program_exec(download_finished_args, NULL, NULL);
+
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;