Browse Source

Move StreamHelper to LiveTv project

Patrick Barron 1 year ago
parent
commit
41de6d1741

+ 0 - 2
Emby.Server.Implementations/ApplicationHost.cs

@@ -502,8 +502,6 @@ namespace Emby.Server.Implementations
 
 
             serviceCollection.AddSingleton(_xmlSerializer);
             serviceCollection.AddSingleton(_xmlSerializer);
 
 
-            serviceCollection.AddSingleton<IStreamHelper, StreamHelper>();
-
             serviceCollection.AddSingleton<ICryptoProvider, CryptographyProvider>();
             serviceCollection.AddSingleton<ICryptoProvider, CryptographyProvider>();
 
 
             serviceCollection.AddSingleton<ISocketFactory, SocketFactory>();
             serviceCollection.AddSingleton<ISocketFactory, SocketFactory>();

+ 2 - 0
Jellyfin.Server/CoreAppHost.cs

@@ -29,6 +29,7 @@ using MediaBrowser.Controller.Net;
 using MediaBrowser.Controller.Security;
 using MediaBrowser.Controller.Security;
 using MediaBrowser.Controller.Trickplay;
 using MediaBrowser.Controller.Trickplay;
 using MediaBrowser.Model.Activity;
 using MediaBrowser.Model.Activity;
+using MediaBrowser.Model.IO;
 using MediaBrowser.Providers.Lyric;
 using MediaBrowser.Providers.Lyric;
 using Microsoft.Extensions.Configuration;
 using Microsoft.Extensions.Configuration;
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.DependencyInjection;
@@ -103,6 +104,7 @@ namespace Jellyfin.Server
             serviceCollection.AddSingleton<LiveTvDtoService>();
             serviceCollection.AddSingleton<LiveTvDtoService>();
             serviceCollection.AddSingleton<ILiveTvManager, LiveTvManager>();
             serviceCollection.AddSingleton<ILiveTvManager, LiveTvManager>();
             serviceCollection.AddSingleton<IChannelManager, ChannelManager>();
             serviceCollection.AddSingleton<IChannelManager, ChannelManager>();
+            serviceCollection.AddSingleton<IStreamHelper, StreamHelper>();
 
 
             foreach (var type in GetExportTypes<ILyricProvider>())
             foreach (var type in GetExportTypes<ILyricProvider>())
             {
             {

+ 1 - 1
Emby.Server.Implementations/IO/StreamHelper.cs → src/Jellyfin.LiveTv/StreamHelper.cs

@@ -7,7 +7,7 @@ using System.Threading;
 using System.Threading.Tasks;
 using System.Threading.Tasks;
 using MediaBrowser.Model.IO;
 using MediaBrowser.Model.IO;
 
 
-namespace Emby.Server.Implementations.IO
+namespace Jellyfin.LiveTv
 {
 {
     public class StreamHelper : IStreamHelper
     public class StreamHelper : IStreamHelper
     {
     {