ignore subtitles when they are unavailable (#1583)

This commit is contained in:
Jason Dove
2024-01-30 14:29:13 -06:00
committed by GitHub
parent 6923b25177
commit 4cf8b83de4
2 changed files with 2 additions and 1 deletions
@@ -228,7 +228,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
Option<SubtitleInputFile> subtitleInputFile = maybeSubtitle.Map<Option<SubtitleInputFile>>(
subtitle =>
{
if (!subtitle.IsImage && subtitle.SubtitleKind == SubtitleKind.Embedded && !subtitle.IsExtracted)
if (!subtitle.IsImage && subtitle.SubtitleKind == SubtitleKind.Embedded && (!subtitle.IsExtracted || string.IsNullOrWhiteSpace(subtitle.Path)))
{
_logger.LogWarning("Subtitles are not yet available for this item");
return None;