mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2025-10-23 15:11:08 +00:00
feat: automatic audio language metadata for embedded audio tracks
- Add intelligent embedded audio language detection at mux stage - Automatically set audio language metadata when no separate audio tracks exist - Respect user flags (-V, --no-audio) to avoid unnecessary processing - Smart video track selection based on title language with fallbacks - Improved default track selection to prioritize title language matches - Enhanced FFmpeg repackaging with audio stream metadata injection - Works automatically for all services without service-specific code
This commit is contained in:
@@ -1147,8 +1147,9 @@ class dl:
|
||||
with Live(Padding(progress, (0, 5, 1, 5)), console=console):
|
||||
for task_id, task_tracks in multiplex_tasks:
|
||||
progress.start_task(task_id) # TODO: Needed?
|
||||
audio_expected = not video_only and not no_audio
|
||||
muxed_path, return_code, errors = task_tracks.mux(
|
||||
str(title), progress=partial(progress.update, task_id=task_id), delete=False
|
||||
str(title), progress=partial(progress.update, task_id=task_id), delete=False, audio_expected=audio_expected, title_language=title.language
|
||||
)
|
||||
muxed_paths.append(muxed_path)
|
||||
if return_code >= 2:
|
||||
|
||||
Reference in New Issue
Block a user