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"]