audio codec fix
This commit is contained in:
parent
bfbda1dff4
commit
31e81432e3
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user