diff options
author | Vitiko <[email protected]> | 2021-12-14 15:58:50 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2021-12-14 15:58:50 -0400 |
commit | b5c66e1470991ac6896b311096a78c8bef21ef9e (patch) | |
tree | ec405f0c101c23659d29e3c5d31ddfee13c8c9e5 /libs/subliminal_patch/providers/embeddedsubtitles.py | |
parent | 9b74ad8610f35275e76b9374643d768c6ef8df53 (diff) | |
download | bazarr-b5c66e1470991ac6896b311096a78c8bef21ef9e.tar.gz bazarr-b5c66e1470991ac6896b311096a78c8bef21ef9e.zip |
Embedded Subtitles Provider: rebuild language if forcedv1.0.2-beta.8
Diffstat (limited to 'libs/subliminal_patch/providers/embeddedsubtitles.py')
-rw-r--r-- | libs/subliminal_patch/providers/embeddedsubtitles.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/subliminal_patch/providers/embeddedsubtitles.py b/libs/subliminal_patch/providers/embeddedsubtitles.py index 3d9e64959..aa8927fd6 100644 --- a/libs/subliminal_patch/providers/embeddedsubtitles.py +++ b/libs/subliminal_patch/providers/embeddedsubtitles.py @@ -30,6 +30,9 @@ class EmbeddedSubtitle(Subtitle): def __init__(self, stream, container, matches): super().__init__(stream.language, stream.disposition.hearing_impaired) + if stream.disposition.forced: + self.language = Language.rebuild(stream.language, forced=True) + self.stream: FFprobeSubtitleStream = stream self.container: FFprobeVideoContainer = container self.forced = stream.disposition.forced |