fix(subtitle): convert ASS to SRT in the SDH-strip fallback

This commit is contained in:
imSp4rky
2026-07-16 23:22:12 -06:00
parent e50c005106
commit 0b93de94a2
2 changed files with 34 additions and 2 deletions
+3 -2
View File
@@ -1067,8 +1067,9 @@ class Subtitle(Track):
)
else:
if config.subtitle.get("convert_before_strip", True) and self.codec != Subtitle.Codec.SubRip:
self.path = self.convert(Subtitle.Codec.SubRip)
self.codec = Subtitle.Codec.SubRip
# Filter reads SRT only; force the (possibly lossy) conversion so content and
# codec label stay in sync. convert() relabels path/codec only on real conversion.
self.convert(Subtitle.Codec.SubRip, forced=True)
try:
sub = Subtitles(self.path)