From 675d1805edfb5f5877f65fe9fed8b2b219dbb29f Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Mon, 18 May 2020 13:13:41 +0530 Subject: [PATCH] logger.error when no streams found for input format --- spotdl/command_line/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spotdl/command_line/core.py b/spotdl/command_line/core.py index 7362ad7..1aef002 100644 --- a/spotdl/command_line/core.py +++ b/spotdl/command_line/core.py @@ -224,6 +224,11 @@ class Spotdl: quality=self.arguments["quality"], preftype=self.arguments["input_ext"], ) + if stream is None: + logger.error('No matching streams found for given input format: "{}".'.format( + self.arguments["input_ext"] + )) + return if self.arguments["no_encode"]: output_extension = stream["encoding"]