From 21208ecc1c6223cdfd2dbfeaff3bcfad8d0b8937 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 15 Jul 2020 18:13:49 +0200 Subject: Add torrent complete notification --- src/rss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rss.c') diff --git a/src/rss.c b/src/rss.c index 90b3ed6..442fb58 100644 --- a/src/rss.c +++ b/src/rss.c @@ -328,14 +328,14 @@ static int add_torrents_in_reverse(TransmissionSession *transmission_session, Bu download_items_end--; int torrent_name_index = 0; for(; download_items_it != download_items_end && torrent_name_index < MAX_UPDATE_ITEMS; --download_items_it) { - if(transmission_add_torrent(transmission_session, download_items_it->link, &torrent_names[torrent_name_index]) != 0) { + fprintf(stderr, "Starting download of torrent: %s (title: %s)\n", download_items_it->link, download_items_it->title); + if(transmission_add_torrent(transmission_session, download_items_it->link, NULL, &torrent_names[torrent_name_index]) != 0) { fprintf(stderr, "Failed to add torrent: %s\n", download_items_it->link); result = -1; break; } added_download_items[torrent_name_index] = download_items_it; ++torrent_name_index; - fprintf(stderr, "Starting download of torrent: %s (title: %s)\n", download_items_it->link, download_items_it->title); /* Show notification that download has started? */ } -- cgit v1.2.3