This commit is contained in:
Javanaut
2026-05-22 21:24:48 +02:00
parent db43501ce2
commit 93d19629dc
2 changed files with 14 additions and 2 deletions

View File

@@ -1394,8 +1394,15 @@ def convert(ctx,
from ffx.attachment_format import AttachmentFormat from ffx.attachment_format import AttachmentFormat
styledAssDetector = getattr(
sourceMediaDescriptor,
"hasStyledAssSubtitlesWithFontAttachments",
None,
)
styledAssSourceDetected = ( styledAssSourceDetected = (
sourceMediaDescriptor.hasStyledAssSubtitlesWithFontAttachments() bool(styledAssDetector())
if callable(styledAssDetector)
else False
) )
if styledAssSourceDetected: if styledAssSourceDetected:
styledAssMessage = ( styledAssMessage = (

View File

@@ -209,7 +209,12 @@ class MediaWorkflowScreenBase(Screen):
return None return None
targetMediaDescriptor = currentPattern.getMediaDescriptor(self.context) targetMediaDescriptor = currentPattern.getMediaDescriptor(self.context)
if sourceMediaDescriptor.hasStyledAssSubtitlesWithFontAttachments(): styledAssDetector = getattr(
sourceMediaDescriptor,
"hasStyledAssSubtitlesWithFontAttachments",
None,
)
if callable(styledAssDetector) and styledAssDetector():
targetMediaDescriptor = targetMediaDescriptor.withSourceAttachmentTracks( targetMediaDescriptor = targetMediaDescriptor.withSourceAttachmentTracks(
sourceMediaDescriptor, sourceMediaDescriptor,
AttachmentFormat.TTF, AttachmentFormat.TTF,