mirror of
https://github.com/jellyfin/jellyfin
synced 2024-09-05 23:53:44 +00:00
Add messages to LiveTvConflict exception
This commit is contained in:
parent
79e9fe112c
commit
c46a50ace9
|
@ -9,10 +9,6 @@ namespace MediaBrowser.Controller.LiveTv
|
|||
/// </summary>
|
||||
public class LiveTvConflictException : Exception
|
||||
{
|
||||
public LiveTvConflictException()
|
||||
{
|
||||
}
|
||||
|
||||
public LiveTvConflictException(string message)
|
||||
: base(message)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -145,7 +145,7 @@ namespace Jellyfin.LiveTv.TunerHosts.HdHomerun
|
|||
}
|
||||
|
||||
_activeTuner = -1;
|
||||
throw new LiveTvConflictException();
|
||||
throw new LiveTvConflictException("No tuners available");
|
||||
}
|
||||
|
||||
public async Task ChangeChannel(IHdHomerunChannelCommands commands, CancellationToken cancellationToken)
|
||||
|
|
Loading…
Reference in a new issue