aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 45936a5..a5ab5d9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -510,7 +510,8 @@ static void torrent_list_check_new_downloads_callback(int id, const char *name,
path_join(item_path, components, 2);
const char *download_finished_args[] = { download_finished_script, "rss", item_path, NULL };
- program_exec(download_finished_args, NULL, NULL);
+ if(file_exists(download_finished_script) == 0)
+ program_exec(download_finished_args, NULL, NULL);
}
} else {
if(id >= unfinished_torrents->size) {