mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
catch BDInfo errors
This commit is contained in:
parent
8f291320c9
commit
64f522a9b7
@ -213,7 +213,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
var chapters = mediaInfo.Chapters ?? new List<ChapterInfo>();
|
var chapters = mediaInfo.Chapters ?? new List<ChapterInfo>();
|
||||||
if (video.VideoType == VideoType.BluRay || (video.IsoType.HasValue && video.IsoType.Value == IsoType.BluRay))
|
if (blurayInfo != null)
|
||||||
{
|
{
|
||||||
FetchBdInfo(video, chapters, mediaStreams, blurayInfo);
|
FetchBdInfo(video, chapters, mediaStreams, blurayInfo);
|
||||||
}
|
}
|
||||||
@ -360,7 +360,15 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
/// <returns>VideoStream.</returns>
|
/// <returns>VideoStream.</returns>
|
||||||
private BlurayDiscInfo GetBDInfo(string path)
|
private BlurayDiscInfo GetBDInfo(string path)
|
||||||
{
|
{
|
||||||
return _blurayExaminer.GetDiscInfo(path);
|
try
|
||||||
|
{
|
||||||
|
return _blurayExaminer.GetDiscInfo(path);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.ErrorException("Error getting BDInfo", ex);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FetchEmbeddedInfo(Video video, Model.MediaInfo.MediaInfo data, MetadataRefreshOptions options)
|
private void FetchEmbeddedInfo(Video video, Model.MediaInfo.MediaInfo data, MetadataRefreshOptions options)
|
||||||
@ -628,7 +636,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
FetchFromDvdLib(item, mount);
|
FetchFromDvdLib(item, mount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.VideoType == VideoType.BluRay || (item.IsoType.HasValue && item.IsoType.Value == IsoType.BluRay))
|
if (blurayDiscInfo != null)
|
||||||
{
|
{
|
||||||
item.PlayableStreamFileNames = blurayDiscInfo.Files.ToList();
|
item.PlayableStreamFileNames = blurayDiscInfo.Files.ToList();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user