diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-10-26 13:56:30 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-10-26 13:56:30 +0200 |
| commit | 1b6eb2ff2d2cc3973fa529c721cf50e3ad849646 (patch) | |
| tree | fe57e9cabc1553d04b2897367e98ccb9b143ff89 /Emby.Server.Implementations/Channels/ChannelManager.cs | |
| parent | dc72d90703eab626f5241755251fa97c9b854604 (diff) | |
Enable nullable for more files
Diffstat (limited to 'Emby.Server.Implementations/Channels/ChannelManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Channels/ChannelManager.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Channels/ChannelManager.cs b/Emby.Server.Implementations/Channels/ChannelManager.cs index 178f30de0..09aee602a 100644 --- a/Emby.Server.Implementations/Channels/ChannelManager.cs +++ b/Emby.Server.Implementations/Channels/ChannelManager.cs @@ -586,7 +586,7 @@ namespace Emby.Server.Implementations.Channels { var supportsLatest = provider is ISupportsLatestMedia; - return new ChannelFeatures + return new ChannelFeatures(channel.Name, channel.Id) { CanFilter = !features.MaxPageSize.HasValue, CanSearch = provider is ISearchableChannel, @@ -596,8 +596,6 @@ namespace Emby.Server.Implementations.Channels MediaTypes = features.MediaTypes.ToArray(), SupportsSortOrderToggle = features.SupportsSortOrderToggle, SupportsLatestMedia = supportsLatest, - Name = channel.Name, - Id = channel.Id.ToString("N", CultureInfo.InvariantCulture), SupportsContentDownloading = features.SupportsContentDownloading, AutoRefreshLevels = features.AutoRefreshLevels }; |
