|
|
@ -112,7 +112,6 @@ namespace NzbDrone.Core.Providers
|
|
|
|
parseResult.NzbUrl = item.NzbUrl;
|
|
|
|
parseResult.NzbUrl = item.NzbUrl;
|
|
|
|
parseResult.Series = series;
|
|
|
|
parseResult.Series = series;
|
|
|
|
parseResult.Indexer = item.Indexer;
|
|
|
|
parseResult.Indexer = item.Indexer;
|
|
|
|
var episodes = _episodeProvider.GetEpisodesByParseResult(parseResult);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.Info("Forcing Download of: {0}", item.ReportTitle);
|
|
|
|
logger.Info("Forcing Download of: {0}", item.ReportTitle);
|
|
|
|
_downloadProvider.DownloadReport(parseResult);
|
|
|
|
_downloadProvider.DownloadReport(parseResult);
|
|
|
@ -120,7 +119,7 @@ namespace NzbDrone.Core.Providers
|
|
|
|
|
|
|
|
|
|
|
|
public virtual void Cleanup()
|
|
|
|
public virtual void Cleanup()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var ids = _database.Fetch<int>("SELECT Id FROM SearchHistory WHERE SearchTime > @0", DateTime.Now.AddDays(7));
|
|
|
|
var ids = _database.Fetch<int>("SELECT Id FROM SearchHistory WHERE SearchTime < @0", DateTime.Now.AddDays(-7));
|
|
|
|
|
|
|
|
|
|
|
|
if (ids.Any())
|
|
|
|
if (ids.Any())
|
|
|
|
{
|
|
|
|
{
|
|
|
|