forked from DRMTalks/devine
Add missing exit when --abitrate returns no tracks
This commit is contained in:
parent
d612599e27
commit
067130990c
|
@ -375,6 +375,7 @@ class dl:
|
||||||
title.tracks.select_audio(lambda x: x.bitrate and x.bitrate // 1000 == abitrate)
|
title.tracks.select_audio(lambda x: x.bitrate and x.bitrate // 1000 == abitrate)
|
||||||
if not title.tracks.audio:
|
if not title.tracks.audio:
|
||||||
self.log.error(f"There's no {abitrate}kbps Audio Track...")
|
self.log.error(f"There's no {abitrate}kbps Audio Track...")
|
||||||
|
sys.exit(1)
|
||||||
if channels:
|
if channels:
|
||||||
title.tracks.select_audio(lambda x: math.ceil(x.channels) == math.ceil(channels))
|
title.tracks.select_audio(lambda x: math.ceil(x.channels) == math.ceil(channels))
|
||||||
if not title.tracks.audio:
|
if not title.tracks.audio:
|
||||||
|
|
Loading…
Reference in New Issue