mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-08 02:24:44 -04:00
Catch enabling conversion without specifying codec
Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
parent
14710d536a
commit
df29a338c6
2 changed files with 14 additions and 7 deletions
|
@ -570,7 +570,14 @@ class Track:
|
|||
"M4A": converter.AAC,
|
||||
}
|
||||
|
||||
self.container = codec.upper()
|
||||
try:
|
||||
self.container = codec.upper()
|
||||
except AttributeError:
|
||||
click.secho(
|
||||
"Error: No audio codec chosen to convert to.", fg="red"
|
||||
)
|
||||
raise click.Abort
|
||||
|
||||
if not hasattr(self, "final_path"):
|
||||
self.format_final_path()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue