Prevent adding a root folder that is the same as drone factory

This commit is contained in:
Mark McDowall 2013-08-02 00:16:37 -07:00
commit 485f05d4b9
6 changed files with 33 additions and 11 deletions

View file

@ -27,6 +27,7 @@ namespace NzbDrone.Core.Tv
bool SeriesPathExists(string folder);
List<Series> GetSeriesInList(IEnumerable<int> seriesIds);
Series FindBySlug(string slug);
List<String> GetSeriesPaths();
}
public class SeriesService : ISeriesService
@ -112,6 +113,11 @@ namespace NzbDrone.Core.Tv
return series;
}
public List<string> GetSeriesPaths()
{
return _seriesRepository.GetSeriesPaths();
}
public Series FindByTitle(string title)
{
var tvdbId = _sceneMappingService.GetTvDbId(title);