mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-27 18:10:54 +01:00
update opening of live streams
This commit is contained in:
@@ -118,7 +118,7 @@ namespace Emby.Server.Implementations.LiveTv
|
||||
return list;
|
||||
}
|
||||
|
||||
public async Task<Tuple<MediaSourceInfo, IDirectStreamProvider>> OpenMediaSource(string openToken, CancellationToken cancellationToken)
|
||||
public async Task<Tuple<MediaSourceInfo, IDirectStreamProvider>> OpenMediaSource(string openToken, bool allowLiveStreamProbe, CancellationToken cancellationToken)
|
||||
{
|
||||
MediaSourceInfo stream = null;
|
||||
const bool isAudio = false;
|
||||
@@ -140,7 +140,7 @@ namespace Emby.Server.Implementations.LiveTv
|
||||
|
||||
try
|
||||
{
|
||||
if (!stream.SupportsProbing || stream.MediaStreams.Any(i => i.Index != -1))
|
||||
if (!allowLiveStreamProbe || !stream.SupportsProbing || stream.MediaStreams.Any(i => i.Index != -1))
|
||||
{
|
||||
AddMediaInfo(stream, isAudio, cancellationToken);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user