From c46a50ace9308297e4f17fc002d94a78cb1d7e0c Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Thu, 27 Jun 2024 23:05:45 -0400 Subject: [PATCH] Add messages to LiveTvConflict exception --- MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs | 4 ---- src/Jellyfin.LiveTv/TunerHosts/BaseTunerHost.cs | 2 +- src/Jellyfin.LiveTv/TunerHosts/HdHomerun/HdHomerunManager.cs | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs b/MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs index 881c42c7385..3a062a46784 100644 --- a/MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs +++ b/MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs @@ -9,10 +9,6 @@ namespace MediaBrowser.Controller.LiveTv /// public class LiveTvConflictException : Exception { - public LiveTvConflictException() - { - } - public LiveTvConflictException(string message) : base(message) { diff --git a/src/Jellyfin.LiveTv/TunerHosts/BaseTunerHost.cs b/src/Jellyfin.LiveTv/TunerHosts/BaseTunerHost.cs index afc2e4f9ce0..aba9627ba0b 100644 --- a/src/Jellyfin.LiveTv/TunerHosts/BaseTunerHost.cs +++ b/src/Jellyfin.LiveTv/TunerHosts/BaseTunerHost.cs @@ -219,7 +219,7 @@ public async Task GetChannelStream(string channelId, string streamI } } - throw new LiveTvConflictException(); + throw new LiveTvConflictException("Unable to find host to play channel"); } protected virtual bool IsValidChannelId(string channelId) diff --git a/src/Jellyfin.LiveTv/TunerHosts/HdHomerun/HdHomerunManager.cs b/src/Jellyfin.LiveTv/TunerHosts/HdHomerun/HdHomerunManager.cs index 86133872702..1dd35da41dc 100644 --- a/src/Jellyfin.LiveTv/TunerHosts/HdHomerun/HdHomerunManager.cs +++ b/src/Jellyfin.LiveTv/TunerHosts/HdHomerun/HdHomerunManager.cs @@ -145,7 +145,7 @@ public async Task StartStreaming(IPAddress remoteIP, IPAddress localIP, int loca } _activeTuner = -1; - throw new LiveTvConflictException(); + throw new LiveTvConflictException("No tuners available"); } public async Task ChangeChannel(IHdHomerunChannelCommands commands, CancellationToken cancellationToken)