mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed nullables.
This commit is contained in:
parent
ccfa13e383
commit
0b219e1169
6 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue