|
|
|
@ -154,6 +154,18 @@ namespace NzbDrone.Core.Providers.Indexer
|
|
|
|
|
parseResult.EpisodeTitle = episodes[0].Title;
|
|
|
|
|
var sabTitle = _sabProvider.GetSabTitle(parseResult);
|
|
|
|
|
|
|
|
|
|
if (Convert.ToBoolean(_configProvider.UseBlackhole))
|
|
|
|
|
{
|
|
|
|
|
var blackholeDir = _configProvider.BlackholeDirectory;
|
|
|
|
|
var folder = !String.IsNullOrEmpty(blackholeDir) ? blackholeDir : Path.Combine(CentralDispatch.AppPath, "App_Data");
|
|
|
|
|
var fileName = Path.Combine(folder, sabTitle + ".nzb");
|
|
|
|
|
_logger.Info("Downloading NZB: {0}", sabTitle);
|
|
|
|
|
_httpProvider.DownloadFile(NzbDownloadUrl(feedItem), fileName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//else send to SAB
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (_sabProvider.IsInQueue(sabTitle))
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
@ -163,6 +175,7 @@ namespace NzbDrone.Core.Providers.Indexer
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var episode in episodes)
|
|
|
|
|
{
|
|
|
|
|