mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02:00
added support for getting series by slug
This commit is contained in:
@@ -35,6 +35,7 @@ namespace NzbDrone.Core.Tv
|
||||
Series UpdateSeries(Series series);
|
||||
bool SeriesPathExists(string folder);
|
||||
List<Series> GetSeriesInList(IEnumerable<int> seriesIds);
|
||||
Series FindBySlug(string slug);
|
||||
}
|
||||
|
||||
public class SeriesService : ISeriesService, IHandleAsync<SeriesAddedEvent>
|
||||
@@ -147,6 +148,13 @@ namespace NzbDrone.Core.Tv
|
||||
return _seriesRepository.FindByTvdbId(tvdbId);
|
||||
}
|
||||
|
||||
|
||||
public Series FindBySlug(string slug)
|
||||
{
|
||||
var series = _seriesRepository.FindBySlug(slug);
|
||||
return series;
|
||||
}
|
||||
|
||||
public Series FindByTitle(string title)
|
||||
{
|
||||
var tvdbId = _sceneMappingService.GetTvDbId(title);
|
||||
|
Reference in New Issue
Block a user