Skip to content

Commit

Permalink
Add messages to LiveTvConflict exception
Browse files Browse the repository at this point in the history
  • Loading branch information
crobibero committed Jun 28, 2024
1 parent 79e9fe1 commit c46a50a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ namespace MediaBrowser.Controller.LiveTv
/// </summary>
public class LiveTvConflictException : Exception
{
public LiveTvConflictException()
{
}

public LiveTvConflictException(string message)
: base(message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Jellyfin.LiveTv/TunerHosts/BaseTunerHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public async Task<ILiveStream> GetChannelStream(string channelId, string streamI
}
}

throw new LiveTvConflictException();
throw new LiveTvConflictException("Unable to find host to play channel");
}

protected virtual bool IsValidChannelId(string channelId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c46a50a

Please sign in to comment.