diff options
| author | Brian Howe <howe.m.brian@gmail.com> | 2024-02-27 21:07:30 -0600 |
|---|---|---|
| committer | Brian Howe <howe.m.brian@gmail.com> | 2024-02-27 21:07:30 -0600 |
| commit | 54eb81395ef8d3d4cb064b56361ce94fc72b38b5 (patch) | |
| tree | 73240b556055557b0ae034ef5d5ba60cb5cb051e /Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs | |
| parent | 7f1fec688cc1a6f7f69fa5b059af01cf9c456d3f (diff) | |
| parent | 4786901bb796c3e912f13b686571fde8d16f49c5 (diff) | |
Merge branch 'master' into bhowe34/fix-replace-missing-metadata-for-music
Diffstat (limited to 'Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs')
| -rw-r--r-- | Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs b/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs deleted file mode 100644 index 3e149cc82..000000000 --- a/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using MediaBrowser.Controller.Channels; -using MediaBrowser.Controller.Entities; -using MediaBrowser.Controller.Library; -using MediaBrowser.Model.Dto; - -namespace Emby.Server.Implementations.Channels -{ - /// <summary> - /// A media source provider for channels. - /// </summary> - public class ChannelDynamicMediaSourceProvider : IMediaSourceProvider - { - private readonly ChannelManager _channelManager; - - /// <summary> - /// Initializes a new instance of the <see cref="ChannelDynamicMediaSourceProvider"/> class. - /// </summary> - /// <param name="channelManager">The channel manager.</param> - public ChannelDynamicMediaSourceProvider(IChannelManager channelManager) - { - _channelManager = (ChannelManager)channelManager; - } - - /// <inheritdoc /> - public Task<IEnumerable<MediaSourceInfo>> GetMediaSources(BaseItem item, CancellationToken cancellationToken) - { - return item.SourceType == SourceType.Channel - ? _channelManager.GetDynamicMediaSources(item, cancellationToken) - : Task.FromResult(Enumerable.Empty<MediaSourceInfo>()); - } - - /// <inheritdoc /> - public Task<ILiveStream> OpenMediaSource(string openToken, List<ILiveStream> currentLiveStreams, CancellationToken cancellationToken) - { - throw new NotImplementedException(); - } - } -} |
