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

This commit is contained in:
Taloth Saldono 2016-01-21 08:40:10 +01:00
parent bbfe8c27c6
commit 64e90f35c8
1 changed files with 5 additions and 1 deletions

View File

@ -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));