From 067130990c7319d5c4d4c3ccea95e6a253352c72 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 10 Feb 2023 21:11:28 +0000 Subject: [PATCH] Add missing exit when --abitrate returns no tracks --- devine/commands/dl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 8dd75b5..690ba98 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -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: