From 31e81432e34d70f74438038358c6b95c5aaafd3c Mon Sep 17 00:00:00 2001 From: Sihht Date: Thu, 17 Apr 2025 10:51:20 -0500 Subject: [PATCH] audio codec fix --- vinetrimmer/commands/dl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vinetrimmer/commands/dl.py b/vinetrimmer/commands/dl.py index 7947ad3..2a10317 100644 --- a/vinetrimmer/commands/dl.py +++ b/vinetrimmer/commands/dl.py @@ -309,7 +309,7 @@ def dl(ctx, profile, cdm, *_, **__): @dl.result_callback() @click.pass_context -def result(ctx, service, quality, closest_resolution, range_, wanted, alang, slang, audio_only, subs_only, chapters_only, audio_description, +def result(ctx, service, quality, closest_resolution, range_, wanted, alang, slang, codec, audio_only, subs_only, chapters_only, audio_description, list_, keys, cache, no_cache, no_subs, no_audio, no_video, no_chapters, atmos, vbitrate: int, abitrate: int, no_mux, mux, selected, latest_episode, strip_sdh, *_, **__): def ccextractor(): log.info("Extracting EIA-608 captions from stream with CCExtractor") @@ -410,7 +410,7 @@ def result(ctx, service, quality, closest_resolution, range_, wanted, alang, sla quality = closest_res title.tracks.select_videos(by_quality=quality, by_vbitrate=vbitrate, by_range=range_, one_only=True) - title.tracks.select_audios(by_language=alang, by_bitrate=abitrate, with_descriptive=audio_description) + title.tracks.select_audios(by_language=alang, by_bitrate=abitrate, with_descriptive=audio_description, by_codec=acodec) title.tracks.select_subtitles(by_language=slang, with_forced=True) vbitrate = "min"