The Free Software Media System - Server Backend & API
Move channels to LiveTv project
Patrick Barron126aa9c893a5
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex bb565fb2ba..0b6f4178bc 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -15,7 +15,6 @@ using System.Security.Cryptography.X509Certificates;using System.Threading.Tasks;using Emby.Naming.Common;using Emby.Photos;-using Emby.Server.Implementations.Channels;using Emby.Server.Implementations.Collections;using Emby.Server.Implementations.Configuration;using Emby.Server.Implementations.Cryptography;@@ -556,8 +555,6 @@ namespace Emby.Server.ImplementationsserviceCollection.AddTransient(provider => new Lazy<ILiveTvManager>(provider.GetRequiredService<ILiveTvManager>));serviceCollection.AddSingleton<IDtoService, DtoService>();- serviceCollection.AddSingleton<IChannelManager, ChannelManager>();-serviceCollection.AddSingleton<ISessionManager, SessionManager>();serviceCollection.AddSingleton<ICollectionManager, CollectionManager>();diff --git a/Jellyfin.Server/CoreAppHost.cs b/Jellyfin.Server/CoreAppHost.csindex b1ac51f998..fb01f6edb9 100644--- a/Jellyfin.Server/CoreAppHost.cs+++ b/Jellyfin.Server/CoreAppHost.cs@@ -7,6 +7,7 @@ using Jellyfin.Api.WebSocketListeners;using Jellyfin.Drawing;using Jellyfin.Drawing.Skia;using Jellyfin.LiveTv;+using Jellyfin.LiveTv.Channels;using Jellyfin.Server.Implementations;using Jellyfin.Server.Implementations.Activity;using Jellyfin.Server.Implementations.Devices;@@ -17,6 +18,7 @@ using Jellyfin.Server.Implementations.Users;using MediaBrowser.Controller;using MediaBrowser.Controller.Authentication;using MediaBrowser.Controller.BaseItemManager;+using MediaBrowser.Controller.Channels;using MediaBrowser.Controller.Devices;using MediaBrowser.Controller.Drawing;using MediaBrowser.Controller.Events;@@ -100,6 +102,7 @@ namespace Jellyfin.ServerserviceCollection.AddSingleton<LiveTvDtoService>();serviceCollection.AddSingleton<ILiveTvManager, LiveTvManager>();+ serviceCollection.AddSingleton<IChannelManager, ChannelManager>();foreach (var type in GetExportTypes<ILyricProvider>()){diff --git a/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs b/src/Jellyfin.LiveTv/Channels/ChannelDynamicMediaSourceProvider.cssimilarity index 96%rename from Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.csrename to src/Jellyfin.LiveTv/Channels/ChannelDynamicMediaSourceProvider.csindex 3e149cc82c..839549ed67 100644--- a/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs+++ b/src/Jellyfin.LiveTv/Channels/ChannelDynamicMediaSourceProvider.cs@@ -8,7 +8,7 @@ using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Model.Dto;-namespace Emby.Server.Implementations.Channels+namespace Jellyfin.LiveTv.Channels{/// <summary>/// A media source provider for channels.diff --git a/Emby.Server.Implementations/Channels/ChannelImageProvider.cs b/src/Jellyfin.LiveTv/Channels/ChannelImageProvider.cssimilarity index 97%rename from Emby.Server.Implementations/Channels/ChannelImageProvider.csrename to src/Jellyfin.LiveTv/Channels/ChannelImageProvider.csindex 25cbfcf146..32e224550f 100644--- a/Emby.Server.Implementations/Channels/ChannelImageProvider.cs+++ b/src/Jellyfin.LiveTv/Channels/ChannelImageProvider.cs@@ -7,7 +7,7 @@ using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Providers;using MediaBrowser.Model.Entities;-namespace Emby.Server.Implementations.Channels+namespace Jellyfin.LiveTv.Channels{/// <summary>/// An image provider for channels.diff --git a/Emby.Server.Implementations/Channels/ChannelManager.cs b/src/Jellyfin.LiveTv/Channels/ChannelManager.cssimilarity index 99%rename from Emby.Server.Implementations/Channels/ChannelManager.csrename to src/Jellyfin.LiveTv/Channels/ChannelManager.csindex c505e8fe13..f5ce75ff4d 100644--- a/Emby.Server.Implementations/Channels/ChannelManager.cs+++ b/src/Jellyfin.LiveTv/Channels/ChannelManager.cs@@ -34,7 +34,7 @@ using MusicAlbum = MediaBrowser.Controller.Entities.Audio.MusicAlbum;using Season = MediaBrowser.Controller.Entities.TV.Season;using Series = MediaBrowser.Controller.Entities.TV.Series;-namespace Emby.Server.Implementations.Channels+namespace Jellyfin.LiveTv.Channels{/// <summary>/// The LiveTV channel manager.diff --git a/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs b/src/Jellyfin.LiveTv/Channels/ChannelPostScanTask.cssimilarity index 98%rename from Emby.Server.Implementations/Channels/ChannelPostScanTask.csrename to src/Jellyfin.LiveTv/Channels/ChannelPostScanTask.csindex b358ba4d55..b4f6cf731e 100644--- a/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs+++ b/src/Jellyfin.LiveTv/Channels/ChannelPostScanTask.cs@@ -8,7 +8,7 @@ using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using Microsoft.Extensions.Logging;-namespace Emby.Server.Implementations.Channels+namespace Jellyfin.LiveTv.Channels{/// <summary>/// A task to remove all non-installed channels from the database.diff --git a/Emby.Server.Implementations/Channels/RefreshChannelsScheduledTask.cs b/src/Jellyfin.LiveTv/Channels/RefreshChannelsScheduledTask.cssimilarity index 98%rename from Emby.Server.Implementations/Channels/RefreshChannelsScheduledTask.csrename to src/Jellyfin.LiveTv/Channels/RefreshChannelsScheduledTask.csindex cfd08e6535..556e052d4e 100644--- a/Emby.Server.Implementations/Channels/RefreshChannelsScheduledTask.cs+++ b/src/Jellyfin.LiveTv/Channels/RefreshChannelsScheduledTask.cs@@ -9,7 +9,7 @@ using MediaBrowser.Model.Globalization;using MediaBrowser.Model.Tasks;using Microsoft.Extensions.Logging;-namespace Emby.Server.Implementations.Channels+namespace Jellyfin.LiveTv.Channels{/// <summary>/// The "Refresh Channels" scheduled task.diff --git a/src/Jellyfin.LiveTv/Jellyfin.LiveTv.csproj b/src/Jellyfin.LiveTv/Jellyfin.LiveTv.csprojindex 3910064499..5a826a1da0 100644--- a/src/Jellyfin.LiveTv/Jellyfin.LiveTv.csproj+++ b/src/Jellyfin.LiveTv/Jellyfin.LiveTv.csproj@@ -12,6 +12,7 @@<ItemGroup><PackageReference Include="Jellyfin.XmlTv" />+ <PackageReference Include="System.Linq.Async" /></ItemGroup><ItemGroup>