Ensure rTorrent download is started even if the user doesn't have schedule=...,start_tied= in their rtorrent.rc.

pull/3113/head
Taloth Saldono 9 years ago
parent bbfe8c27c6
commit 64e90f35c8

@ -221,9 +221,13 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
commands.Add("d.set_priority=" + (long)priority); 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()) if (commands.Any())
{ {
var key = "event.download.inserted"; var key = "event.download.inserted_new";
var cmd_key = "sonarr_deferred_" + hash; var cmd_key = "sonarr_deferred_" + hash;
commands.Add(string.Format("print=\"Applying deferred properties to {0}\"", hash)); commands.Add(string.Format("print=\"Applying deferred properties to {0}\"", hash));

Loading…
Cancel
Save