mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Prevent adding a root folder that is the same as drone factory
This commit is contained in:
parent
e3916d5fc8
commit
485f05d4b9
6 changed files with 33 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue