mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-08 02:59:31 -06:00
FF-1069 - fixing issue extracting dvd_subtitle
This commit is contained in:
@@ -29,7 +29,7 @@ internal class SubtitleHelper
|
||||
/// <param name="codec">the subtitle codec</param>
|
||||
/// <returns>true if the subtitle is an image based subtitle</returns>
|
||||
internal static bool IsImageSubtitle(string codec)
|
||||
=> Regex.IsMatch((codec ?? string.Empty).Replace("_", ""), "dvbsub|pgs|xsub|vobsub", RegexOptions.IgnoreCase);
|
||||
=> Regex.IsMatch((codec ?? string.Empty).Replace("_", ""), "dvbsub|pgs|xsub|vobsub|dvdsub", RegexOptions.IgnoreCase);
|
||||
|
||||
/// <summary>
|
||||
/// Determines the appropriate subtitle codec for conversion based on the container type and current subtitle codec.
|
||||
|
||||
@@ -117,6 +117,7 @@ public class SubtitleExtractor : EncodingNode
|
||||
OutputFile = OutputFile[0..^4];
|
||||
|
||||
OutputFile += "." + extension;
|
||||
args.Logger?.ILog($"Extracting subtitle codec '{subTrack.Codec}' to '{OutputFile}'");
|
||||
|
||||
var extracted = ExtractSubtitle(args, FFMPEG, "0:s:" + subTrack.TypeIndex, OutputFile);
|
||||
if(extracted)
|
||||
|
||||
Reference in New Issue
Block a user