diff --git a/src/NzbDrone.Core/IndexerSearch/Definitions/SceneSeasonMapping.cs b/src/NzbDrone.Core/IndexerSearch/Definitions/SceneSeasonMapping.cs index 66619caed..3fcaff35a 100644 --- a/src/NzbDrone.Core/IndexerSearch/Definitions/SceneSeasonMapping.cs +++ b/src/NzbDrone.Core/IndexerSearch/Definitions/SceneSeasonMapping.cs @@ -11,5 +11,19 @@ namespace NzbDrone.Core.IndexerSearch.Definitions public SearchMode SearchMode { get; set; } public List SceneTitles { get; set; } public int SeasonNumber { get; set; } + + public override int GetHashCode() + { + return SearchMode.GetHashCode() ^ SeasonNumber.GetHashCode(); + } + + public override bool Equals(object obj) + { + var other = obj as SceneSeasonMapping; + + if (object.ReferenceEquals(other, null)) return false; + + return SeasonNumber == other.SeasonNumber && SearchMode == other.SearchMode; + } } }