logger.error when no streams found for input format

This commit is contained in:
Ritiek Malhotra
2020-05-18 13:13:41 +05:30
parent ac6997e05e
commit 675d1805ed

View File

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