feat(tracks): Add duration fix handling for video and hybrid tracks

This commit is contained in:
Andy
2025-07-30 21:39:34 +00:00
parent fdff3a1c56
commit 4de9251f95
3 changed files with 31 additions and 15 deletions

View File

@@ -959,6 +959,9 @@ class dl:
# Create track pair for this resolution
resolution_tracks = [hdr10_track, matching_dv]
for track in resolution_tracks:
track.needs_duration_fix = True
# Run the hybrid processing for this resolution
Hybrid(resolution_tracks, self.service)
@@ -982,6 +985,7 @@ class dl:
hybrid_track = deepcopy(hdr10_track)
hybrid_track.path = hybrid_output_path
hybrid_track.range = Video.Range.DV # It's now a DV track
hybrid_track.needs_duration_fix = True
task_tracks.videos = [hybrid_track]
multiplex_tasks.append((task_id, task_tracks))