Merge pull request #12185 from crobibero/live-tv-conflict-exception

Add messages to LiveTvConflict exception
This commit is contained in:
Bond-009 2024-06-30 23:30:24 +02:00 committed by GitHub
commit 6225b92da0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 6 deletions

View File

@ -9,10 +9,6 @@ namespace MediaBrowser.Controller.LiveTv
/// </summary> /// </summary>
public class LiveTvConflictException : Exception public class LiveTvConflictException : Exception
{ {
public LiveTvConflictException()
{
}
public LiveTvConflictException(string message) public LiveTvConflictException(string message)
: base(message) : base(message)
{ {

View File

@ -219,7 +219,7 @@ namespace Jellyfin.LiveTv.TunerHosts
} }
} }
throw new LiveTvConflictException(); throw new LiveTvConflictException("Unable to find host to play channel");
} }
protected virtual bool IsValidChannelId(string channelId) protected virtual bool IsValidChannelId(string channelId)

View File

@ -145,7 +145,7 @@ namespace Jellyfin.LiveTv.TunerHosts.HdHomerun
} }
_activeTuner = -1; _activeTuner = -1;
throw new LiveTvConflictException(); throw new LiveTvConflictException("No tuners available");
} }
public async Task ChangeChannel(IHdHomerunChannelCommands commands, CancellationToken cancellationToken) public async Task ChangeChannel(IHdHomerunChannelCommands commands, CancellationToken cancellationToken)