mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
Prevent adding a root folder that is the same as drone factory
This commit is contained in:
@@ -10,11 +10,11 @@ namespace NzbDrone.Core.Tv
|
||||
{
|
||||
bool SeriesPathExists(string path);
|
||||
List<Series> Search(string title);
|
||||
|
||||
Series FindByTitle(string cleanTitle);
|
||||
Series FindByTvdbId(int tvdbId);
|
||||
void SetSeriesType(int seriesId, SeriesTypes seriesTypes);
|
||||
Series FindBySlug(string slug);
|
||||
List<String> GetSeriesPaths();
|
||||
}
|
||||
|
||||
public class SeriesRepository : BasicRepository<Series>, ISeriesRepository
|
||||
@@ -53,5 +53,10 @@ namespace NzbDrone.Core.Tv
|
||||
{
|
||||
return Query.SingleOrDefault(c => c.TitleSlug == slug.ToLower());
|
||||
}
|
||||
|
||||
public List<string> GetSeriesPaths()
|
||||
{
|
||||
return Query.Select(s => s.Path).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user