v0.4.3
This commit is contained in:
@@ -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 = (
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user