refactor(dl): declare hybrid_base_only flag and extract standalone mux helper

Make the DV-ingredient marker a declared Video attribute (sibling of needs_duration_fix) instead of a runtime-stamped attribute read via getattr, so the flag is explicit and type-checked.

Extract mux_video_standalone() to replace the duplicated per-track mux logic shared by the hybrid and normal-mode paths, removing the copy-paste and the getattr probes. Behavior unchanged.
This commit is contained in:
imSp4rky
2026-05-29 17:13:29 -06:00
parent 5899c1eec8
commit accfe9cee1
2 changed files with 23 additions and 33 deletions
+1
View File
@@ -296,6 +296,7 @@ class Video(Track):
self.closed_captions: list[dict[str, Any]] = closed_captions or []
self.needs_duration_fix = False
self.dv_compatible_bitstream = dv_compatible_bitstream
self.hybrid_base_only = False
def to_dict(self) -> dict[str, Any]:
data = super().to_dict()