mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: Should ignore indexer provided tvrageid when scene naming exception exists.
This commit is contained in:
parent
c56cf8860e
commit
a84f39bb48
5 changed files with 67 additions and 34 deletions
|
@ -15,7 +15,7 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|||
public interface ISceneMappingService
|
||||
{
|
||||
List<String> GetSceneNames(int tvdbId, IEnumerable<Int32> seasonNumbers);
|
||||
Nullable<int> FindTvDbId(string title);
|
||||
Nullable<int> FindTvdbId(string title);
|
||||
List<SceneMapping> FindByTvdbId(int tvdbId);
|
||||
Nullable<Int32> GetSeasonNumber(string title);
|
||||
}
|
||||
|
@ -61,9 +61,9 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|||
.Select(m => m.SearchTerm).Distinct().ToList());
|
||||
}
|
||||
|
||||
public Nullable<Int32> FindTvDbId(string title)
|
||||
public Nullable<Int32> FindTvdbId(string title)
|
||||
{
|
||||
var mapping = FindTvdbId(title);
|
||||
var mapping = FindMapping(title);
|
||||
|
||||
if (mapping == null)
|
||||
return null;
|
||||
|
@ -90,7 +90,7 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|||
|
||||
public Nullable<Int32> GetSeasonNumber(string title)
|
||||
{
|
||||
var mapping = FindTvdbId(title);
|
||||
var mapping = FindMapping(title);
|
||||
|
||||
if (mapping == null)
|
||||
return null;
|
||||
|
@ -147,7 +147,7 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|||
_eventAggregator.PublishEvent(new SceneMappingsUpdatedEvent());
|
||||
}
|
||||
|
||||
private SceneMapping FindTvdbId(string title)
|
||||
private SceneMapping FindMapping(string title)
|
||||
{
|
||||
if (_getTvdbIdCache.Count == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue