|
|
@ -1,32 +1,22 @@
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Model.Notification;
|
|
|
|
using NzbDrone.Core.Model.Notification;
|
|
|
|
using NzbDrone.Core.DecisionEngine;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Providers.Search;
|
|
|
|
using NzbDrone.Core.Providers.Search;
|
|
|
|
using NzbDrone.Core.Repository;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Repository.Search;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class SearchProvider
|
|
|
|
public class SearchProvider
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly ISeriesService _seriesService;
|
|
|
|
|
|
|
|
private readonly IEpisodeService _episodeService;
|
|
|
|
private readonly IEpisodeService _episodeService;
|
|
|
|
private readonly PartialSeasonSearch _partialSeasonSearch;
|
|
|
|
private readonly PartialSeasonSearch _partialSeasonSearch;
|
|
|
|
private readonly ISeriesRepository _seriesRepository;
|
|
|
|
private readonly ISeriesRepository _seriesRepository;
|
|
|
|
|
|
|
|
|
|
|
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
|
|
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
|
|
|
|
|
|
public SearchProvider(ISeriesService seriesService, IEpisodeService episodeService,
|
|
|
|
public SearchProvider(IEpisodeService episodeService, PartialSeasonSearch partialSeasonSearch, ISeriesRepository seriesRepository)
|
|
|
|
PartialSeasonSearch partialSeasonSearch,ISeriesRepository seriesRepository)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_seriesService = seriesService;
|
|
|
|
|
|
|
|
_episodeService = episodeService;
|
|
|
|
_episodeService = episodeService;
|
|
|
|
_partialSeasonSearch = partialSeasonSearch;
|
|
|
|
_partialSeasonSearch = partialSeasonSearch;
|
|
|
|
_seriesRepository = seriesRepository;
|
|
|
|
_seriesRepository = seriesRepository;
|
|
|
|