Add missing exit when --abitrate returns no tracks

This commit is contained in:
rlaphoenix 2023-02-10 21:11:28 +00:00
parent d612599e27
commit 067130990c
1 changed files with 1 additions and 0 deletions

View File

@ -375,6 +375,7 @@ class dl:
title.tracks.select_audio(lambda x: x.bitrate and x.bitrate // 1000 == abitrate)
if not title.tracks.audio:
self.log.error(f"There's no {abitrate}kbps Audio Track...")
sys.exit(1)
if channels:
title.tracks.select_audio(lambda x: math.ceil(x.channels) == math.ceil(channels))
if not title.tracks.audio: