-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't return Err result when ytdl produces a warning #37
Comments
Thanks for raising this. Could you give some indication of the sort of warning/error that can pop up, or an example URL that's triggering failure? Feel free to PR a new variant function which forcibly ignores errors, or that silences warning from |
|
It should be, if you can find a way to reasonably/safely separate them out from any actual errors. Keep in mind that the track metadata is also output on stderr, and is siphoned off accordingly so that we can get away with fewer calls to Otherwise, please add |
I encountered this recently trying to play https://opus-codec.org/static/examples/samples/speech_orig.wav. yt-dl can download it, but songbird says that the warning "Falling back on generic information extractor" is an error thus failing to play |
Simple enough change to handle this for now, in that it just tells ytdl to silence errors. Closes serenity-rs#37.
Youtube-dl warning messages are written to stderr, causing
songbird::ytdl
to fail if one is produced. Since it's usually not fatal, I think that whether or not it should continue should be configurable.The text was updated successfully, but these errors were encountered: