Closed streambinder closed 5 years ago
If user wants to extract mp3
after downloading a video, and if command exits with no error output means the operation is completed successfully. Silent
mode should only silence info
messages, but not error
messages. Also, ytdownload.go
file needs to be updated to include --silent
or -q
switch that enables the option.Silent
flag.
I do not agree: if an error comes, then
Download
function should return that instance. But if that error is not really considered that way (you don't return it, you just print it), then you shouldn't be worried about muting it. I would anyway splitDownload
and converting procedures into two separated functions, to overcome this obvious problem of handling errors. Errors about converting (and moving/renaming) files are fatals for an eventualConvert
method, while it's not true, as matter of fact, forDownload
one, indeed.