From 64e90f35c850acf756898f66a46944634e4218a0 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 21 Jan 2016 08:40:10 +0100 Subject: [PATCH] Ensure rTorrent download is started even if the user doesn't have schedule=...,start_tied= in their rtorrent.rc. --- .../Download/Clients/rTorrent/RTorrentProxy.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentProxy.cs b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentProxy.cs index c1f915ff8..3ca16da57 100644 --- a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentProxy.cs +++ b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentProxy.cs @@ -221,9 +221,13 @@ namespace NzbDrone.Core.Download.Clients.RTorrent commands.Add("d.set_priority=" + (long)priority); } + // Ensure it gets started if the user doesn't have schedule=...,start_tied= + commands.Add("d.open="); + commands.Add("d.try_start="); + if (commands.Any()) { - var key = "event.download.inserted"; + var key = "event.download.inserted_new"; var cmd_key = "sonarr_deferred_" + hash; commands.Add(string.Format("print=\"Applying deferred properties to {0}\"", hash));