Skip to content

Commit

Permalink
Merge pull request jellyfin#12185 from crobibero/live-tv-conflict-exc…
Browse files Browse the repository at this point in the history
…eption

Add messages to LiveTvConflict exception
  • Loading branch information
Bond-009 authored Jun 30, 2024
2 parents 64b6805 + c46a50a commit 6225b92
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 6225b92

Please sign in to comment.