Repository navigation
Conversation
probe.parse keeps a parallel subs_forced list (ffmpeg's (forced) flag or a stream title containing forced); same_cut refuses a replacement that lacks a forced track ours has, or whose forced tracks cannot be read.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The gap
probe.parse()recorded embedded subtitles as language only, so the forced flag was dropped.substitute.same_cut()compared subtitle languages only, so a replacement carrying a full English track could replace our file with a forced English track (the one that translates foreign-language parts) and the swap passed.The change
probe.parseaddssubs_forced: languages of subtitle tracks flagged forced, by ffmpeg's(forced)stream flag or a stream title containing "forced".subsis unchanged.same_cutrefuses when ours has a forced track in a language the new file has no forced track for. If ours has forced tracks and the new file's forced tracks cannot be read (nosubs_forced), it refuses. Facts withoutsubs_forcedon our side behave as before.subs/probe dict checked:substitute.py(own_facts,_langs_covered, journal counts) only; none affected.Proof
tiering/offload/tests/test_probe.py(flag and title forms,subsunchanged),tiering/offload/tests/test_substitute_round2.py(refuse cases, unreadable, ok cases). Wholetiering/offloadsuite run on claude-sandbox.