From ca1a8ced48747dc3ec90f8d3d350246ad119d45a Mon Sep 17 00:00:00 2001 From: Patrick Barron Date: Fri, 9 Feb 2024 09:56:04 -0500 Subject: [PATCH] Move IO code to separate folder --- src/Jellyfin.LiveTv/EmbyTV/EmbyTV.cs | 1 + .../Extensions/LiveTvServiceCollectionExtensions.cs | 1 + src/Jellyfin.LiveTv/{EmbyTV => IO}/DirectRecorder.cs | 2 +- src/Jellyfin.LiveTv/{EmbyTV => IO}/EncodedRecorder.cs | 2 +- src/Jellyfin.LiveTv/{ => IO}/ExclusiveLiveStream.cs | 2 +- src/Jellyfin.LiveTv/{EmbyTV => IO}/IRecorder.cs | 2 +- src/Jellyfin.LiveTv/{ => IO}/StreamHelper.cs | 2 +- src/Jellyfin.LiveTv/LiveTvManager.cs | 1 + 8 files changed, 8 insertions(+), 5 deletions(-) rename src/Jellyfin.LiveTv/{EmbyTV => IO}/DirectRecorder.cs (99%) rename src/Jellyfin.LiveTv/{EmbyTV => IO}/EncodedRecorder.cs (99%) rename src/Jellyfin.LiveTv/{ => IO}/ExclusiveLiveStream.cs (97%) rename src/Jellyfin.LiveTv/{EmbyTV => IO}/IRecorder.cs (97%) rename src/Jellyfin.LiveTv/{ => IO}/StreamHelper.cs (99%) diff --git a/src/Jellyfin.LiveTv/EmbyTV/EmbyTV.cs b/src/Jellyfin.LiveTv/EmbyTV/EmbyTV.cs index 48f5cea84c..cfd142d438 100644 --- a/src/Jellyfin.LiveTv/EmbyTV/EmbyTV.cs +++ b/src/Jellyfin.LiveTv/EmbyTV/EmbyTV.cs @@ -19,6 +19,7 @@ using Jellyfin.Data.Enums; using Jellyfin.Data.Events; using Jellyfin.Extensions; using Jellyfin.LiveTv.Configuration; +using Jellyfin.LiveTv.IO; using Jellyfin.LiveTv.Timers; using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Extensions; diff --git a/src/Jellyfin.LiveTv/Extensions/LiveTvServiceCollectionExtensions.cs b/src/Jellyfin.LiveTv/Extensions/LiveTvServiceCollectionExtensions.cs index a632827f1f..4f05a85e43 100644 --- a/src/Jellyfin.LiveTv/Extensions/LiveTvServiceCollectionExtensions.cs +++ b/src/Jellyfin.LiveTv/Extensions/LiveTvServiceCollectionExtensions.cs @@ -1,5 +1,6 @@ using Jellyfin.LiveTv.Channels; using Jellyfin.LiveTv.Guide; +using Jellyfin.LiveTv.IO; using Jellyfin.LiveTv.Listings; using Jellyfin.LiveTv.Timers; using Jellyfin.LiveTv.TunerHosts; diff --git a/src/Jellyfin.LiveTv/EmbyTV/DirectRecorder.cs b/src/Jellyfin.LiveTv/IO/DirectRecorder.cs similarity index 99% rename from src/Jellyfin.LiveTv/EmbyTV/DirectRecorder.cs rename to src/Jellyfin.LiveTv/IO/DirectRecorder.cs index 2a25218b63..c4ec6de401 100644 --- a/src/Jellyfin.LiveTv/EmbyTV/DirectRecorder.cs +++ b/src/Jellyfin.LiveTv/IO/DirectRecorder.cs @@ -12,7 +12,7 @@ using MediaBrowser.Model.Dto; using MediaBrowser.Model.IO; using Microsoft.Extensions.Logging; -namespace Jellyfin.LiveTv.EmbyTV +namespace Jellyfin.LiveTv.IO { public sealed class DirectRecorder : IRecorder { diff --git a/src/Jellyfin.LiveTv/EmbyTV/EncodedRecorder.cs b/src/Jellyfin.LiveTv/IO/EncodedRecorder.cs similarity index 99% rename from src/Jellyfin.LiveTv/EmbyTV/EncodedRecorder.cs rename to src/Jellyfin.LiveTv/IO/EncodedRecorder.cs index 132a5fc516..ff00c89997 100644 --- a/src/Jellyfin.LiveTv/EmbyTV/EncodedRecorder.cs +++ b/src/Jellyfin.LiveTv/IO/EncodedRecorder.cs @@ -23,7 +23,7 @@ using MediaBrowser.Model.Dto; using MediaBrowser.Model.IO; using Microsoft.Extensions.Logging; -namespace Jellyfin.LiveTv.EmbyTV +namespace Jellyfin.LiveTv.IO { public class EncodedRecorder : IRecorder { diff --git a/src/Jellyfin.LiveTv/ExclusiveLiveStream.cs b/src/Jellyfin.LiveTv/IO/ExclusiveLiveStream.cs similarity index 97% rename from src/Jellyfin.LiveTv/ExclusiveLiveStream.cs rename to src/Jellyfin.LiveTv/IO/ExclusiveLiveStream.cs index 9d442e20cc..394b9cf11d 100644 --- a/src/Jellyfin.LiveTv/ExclusiveLiveStream.cs +++ b/src/Jellyfin.LiveTv/IO/ExclusiveLiveStream.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; using MediaBrowser.Controller.Library; using MediaBrowser.Model.Dto; -namespace Jellyfin.LiveTv +namespace Jellyfin.LiveTv.IO { public sealed class ExclusiveLiveStream : ILiveStream { diff --git a/src/Jellyfin.LiveTv/EmbyTV/IRecorder.cs b/src/Jellyfin.LiveTv/IO/IRecorder.cs similarity index 97% rename from src/Jellyfin.LiveTv/EmbyTV/IRecorder.cs rename to src/Jellyfin.LiveTv/IO/IRecorder.cs index 7ed42e2634..ab45064142 100644 --- a/src/Jellyfin.LiveTv/EmbyTV/IRecorder.cs +++ b/src/Jellyfin.LiveTv/IO/IRecorder.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using MediaBrowser.Controller.Library; using MediaBrowser.Model.Dto; -namespace Jellyfin.LiveTv.EmbyTV +namespace Jellyfin.LiveTv.IO { public interface IRecorder : IDisposable { diff --git a/src/Jellyfin.LiveTv/StreamHelper.cs b/src/Jellyfin.LiveTv/IO/StreamHelper.cs similarity index 99% rename from src/Jellyfin.LiveTv/StreamHelper.cs rename to src/Jellyfin.LiveTv/IO/StreamHelper.cs index e9644e95e7..7947807baa 100644 --- a/src/Jellyfin.LiveTv/StreamHelper.cs +++ b/src/Jellyfin.LiveTv/IO/StreamHelper.cs @@ -7,7 +7,7 @@ using System.Threading; using System.Threading.Tasks; using MediaBrowser.Model.IO; -namespace Jellyfin.LiveTv +namespace Jellyfin.LiveTv.IO { public class StreamHelper : IStreamHelper { diff --git a/src/Jellyfin.LiveTv/LiveTvManager.cs b/src/Jellyfin.LiveTv/LiveTvManager.cs index 1b69fd7fdd..6b4ce6f7c1 100644 --- a/src/Jellyfin.LiveTv/LiveTvManager.cs +++ b/src/Jellyfin.LiveTv/LiveTvManager.cs @@ -12,6 +12,7 @@ using Jellyfin.Data.Entities; using Jellyfin.Data.Enums; using Jellyfin.Data.Events; using Jellyfin.LiveTv.Configuration; +using Jellyfin.LiveTv.IO; using MediaBrowser.Common.Extensions; using MediaBrowser.Controller.Channels; using MediaBrowser.Controller.Configuration;