aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2024-07-01 00:21:06 +0200
committerBond_009 <bond.009@outlook.com>2024-07-01 00:21:06 +0200
commit60c45d6273c4c3d55d0170ca75f2d8ec57f0c0b4 (patch)
treed10fcd21bbe0ad77d2e780f0ff5ec3251ee040a2 /MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
parent64b6805ec3854057337d438c223ccb208d41d892 (diff)
Use complete paths in BD info
This way we don't need to find the complete path later
Diffstat (limited to 'MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs')
-rw-r--r--MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
index 1d4e665703..246ba2733f 100644
--- a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
+++ b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs
@@ -124,11 +124,8 @@ namespace MediaBrowser.Providers.MediaInfo
// Get BD disc information
blurayDiscInfo = GetBDInfo(item.Path);
- // Get playable .m2ts files
- var m2ts = _mediaEncoder.GetPrimaryPlaylistM2tsFiles(item.Path);
-
// Return if no playable .m2ts files are found
- if (blurayDiscInfo is null || blurayDiscInfo.Files.Length == 0 || m2ts.Count == 0)
+ if (blurayDiscInfo is null || blurayDiscInfo.Files.Length == 0)
{
_logger.LogError("No playable .m2ts files found in Blu-ray structure, skipping FFprobe.");
return ItemUpdateType.MetadataImport;
@@ -138,7 +135,7 @@ namespace MediaBrowser.Providers.MediaInfo
mediaInfoResult = await GetMediaInfo(
new Video
{
- Path = m2ts[0]
+ Path = blurayDiscInfo.Files[0]
},
cancellationToken).ConfigureAwait(false);
}