|
|
|
@ -15,9 +15,9 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|
|
|
|
public interface ISceneMappingService
|
|
|
|
|
{
|
|
|
|
|
List<string> GetSceneNames(int tvdbId, IEnumerable<int> seasonNumbers);
|
|
|
|
|
Nullable<int> FindTvdbId(string title);
|
|
|
|
|
int? FindTvdbId(string title);
|
|
|
|
|
List<SceneMapping> FindByTvdbId(int tvdbId);
|
|
|
|
|
Nullable<Int32> GetSeasonNumber(string title);
|
|
|
|
|
int? GetSeasonNumber(string title);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SceneMappingService : ISceneMappingService,
|
|
|
|
@ -61,7 +61,7 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|
|
|
|
.Select(m => m.SearchTerm).Distinct().ToList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Nullable<Int32> FindTvdbId(string title)
|
|
|
|
|
public int? FindTvdbId(string title)
|
|
|
|
|
{
|
|
|
|
|
var mapping = FindMapping(title);
|
|
|
|
|
|
|
|
|
@ -88,7 +88,7 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|
|
|
|
return mappings;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Nullable<Int32> GetSeasonNumber(string title)
|
|
|
|
|
public int? GetSeasonNumber(string title)
|
|
|
|
|
{
|
|
|
|
|
var mapping = FindMapping(title);
|
|
|
|
|
|
|
|
|
|