aboutsummaryrefslogtreecommitdiff
path: root/src/rss.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-15 18:13:49 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-15 18:13:49 +0200
commit21208ecc1c6223cdfd2dbfeaff3bcfad8d0b8937 (patch)
tree67f151d022fdcd71bf2ddc5fff8046a4d3a8bfa1 /src/rss.c
parent9946c0363648b44d396b07d8a1a4557c568edc88 (diff)
Add torrent complete notification
Diffstat (limited to 'src/rss.c')
-rw-r--r--src/rss.c4
1 files changed, 2 insertions, 2 deletions
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? */
}