|
|
@ -163,9 +163,8 @@ namespace Emby.Server.Implementations.Library.Resolvers
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// use disc-utils, both DVDs and BDs use UDF filesystem
|
|
|
|
// use disc-utils, both DVDs and BDs use UDF filesystem
|
|
|
|
using (var videoFileStream = File.Open(video.Path, FileMode.Open, FileAccess.Read))
|
|
|
|
using var videoFileStream = File.Open(video.Path, FileMode.Open, FileAccess.Read, FileShare.Read);
|
|
|
|
using (UdfReader udfReader = new UdfReader(videoFileStream))
|
|
|
|
using UdfReader udfReader = new UdfReader(videoFileStream);
|
|
|
|
{
|
|
|
|
|
|
|
|
if (udfReader.DirectoryExists("VIDEO_TS"))
|
|
|
|
if (udfReader.DirectoryExists("VIDEO_TS"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
video.IsoType = IsoType.Dvd;
|
|
|
|
video.IsoType = IsoType.Dvd;
|
|
|
@ -175,7 +174,6 @@ namespace Emby.Server.Implementations.Library.Resolvers
|
|
|
|
video.IsoType = IsoType.BluRay;
|
|
|
|
video.IsoType = IsoType.BluRay;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.LogError(ex, "Error opening UDF/ISO image: {Value}", video.Path ?? video.Name);
|
|
|
|
_logger.LogError(ex, "Error opening UDF/ISO image: {Value}", video.Path ?? video.Name);
|
|
|
|