|
|
|
@ -45,6 +45,8 @@ namespace NzbDrone.Core.Providers.DownloadClients
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual bool IsInQueue(EpisodeParseResult newParseResult)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var queue = GetQueue().Where(c => c.ParseResult != null);
|
|
|
|
|
|
|
|
|
@ -68,6 +70,13 @@ namespace NzbDrone.Core.Providers.DownloadClients
|
|
|
|
|
return matchingSeason.Any(q => q.ParseResult.EpisodeNumbers != null && q.ParseResult.EpisodeNumbers.Any(e => newParseResult.EpisodeNumbers.Contains(e)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
logger.WarnException("Unable to connect to SABnzbd to check queue.", ex);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual bool DownloadNzb(string url, string title)
|
|
|
|
|
{
|
|
|
|
|
string cat = _configProvider.SabTvCategory;
|
|
|
|
|