Use array instead of HashSet

This commit is contained in:
Cody Robibero 2021-12-14 15:10:40 -07:00
parent 0edf77994a
commit 87439665d7
1 changed files with 7 additions and 7 deletions

View File

@ -196,7 +196,7 @@ namespace Emby.Server.Implementations.Data
private static readonly string _mediaAttachmentInsertPrefix; private static readonly string _mediaAttachmentInsertPrefix;
private static readonly HashSet<BaseItemKind> _programTypes = new() private static readonly BaseItemKind[] _programTypes = new[]
{ {
BaseItemKind.Program, BaseItemKind.Program,
BaseItemKind.TvChannel, BaseItemKind.TvChannel,
@ -204,7 +204,7 @@ namespace Emby.Server.Implementations.Data
BaseItemKind.LiveTvChannel BaseItemKind.LiveTvChannel
}; };
private static readonly HashSet<BaseItemKind> _programExcludeParentTypes = new() private static readonly BaseItemKind[] _programExcludeParentTypes = new[]
{ {
BaseItemKind.Series, BaseItemKind.Series,
BaseItemKind.Season, BaseItemKind.Season,
@ -213,19 +213,19 @@ namespace Emby.Server.Implementations.Data
BaseItemKind.PhotoAlbum BaseItemKind.PhotoAlbum
}; };
private static readonly HashSet<BaseItemKind> _serviceTypes = new() private static readonly BaseItemKind[] _serviceTypes = new[]
{ {
BaseItemKind.TvChannel, BaseItemKind.TvChannel,
BaseItemKind.LiveTvChannel BaseItemKind.LiveTvChannel
}; };
private static readonly HashSet<BaseItemKind> _startDateTypes = new() private static readonly BaseItemKind[] _startDateTypes = new[]
{ {
BaseItemKind.Program, BaseItemKind.Program,
BaseItemKind.LiveTvProgram BaseItemKind.LiveTvProgram
}; };
private static readonly HashSet<BaseItemKind> _seriesTypes = new() private static readonly BaseItemKind[] _seriesTypes = new[]
{ {
BaseItemKind.Book, BaseItemKind.Book,
BaseItemKind.AudioBook, BaseItemKind.AudioBook,
@ -233,14 +233,14 @@ namespace Emby.Server.Implementations.Data
BaseItemKind.Season BaseItemKind.Season
}; };
private static readonly HashSet<BaseItemKind> _artistExcludeParentTypes = new() private static readonly BaseItemKind[] _artistExcludeParentTypes = new[]
{ {
BaseItemKind.Series, BaseItemKind.Series,
BaseItemKind.Season, BaseItemKind.Season,
BaseItemKind.PhotoAlbum BaseItemKind.PhotoAlbum
}; };
private static readonly HashSet<BaseItemKind> _artistsTypes = new() private static readonly BaseItemKind[] _artistsTypes = new[]
{ {
BaseItemKind.Audio, BaseItemKind.Audio,
BaseItemKind.MusicAlbum, BaseItemKind.MusicAlbum,