mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Catch external streams exceptions
This commit is contained in:
parent
1ffc77b43d
commit
8ea8dcf128
@ -100,6 +100,8 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
foreach (var pathInfo in pathInfos)
|
||||
{
|
||||
if (!pathInfo.Path.AsSpan().EndsWith(".strm", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
try
|
||||
{
|
||||
var mediaInfo = await GetMediaInfo(pathInfo.Path, _type, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@ -131,6 +133,11 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return mediaStreams.AsReadOnly();
|
||||
|
Loading…
x
Reference in New Issue
Block a user