Fix: Prevent ytdl treating warnings as errors.

Simple enough change to handle this for now, in that it just tells ytdl to silence errors.

Closes #37.
This commit is contained in:
Kyle Simpson
2021-01-24 00:40:34 +00:00
parent 196d5be3d2
commit 658fd830c1

View File

@@ -42,6 +42,7 @@ pub(crate) async fn _ytdl(uri: &str, pre_args: &[&str]) -> Result<Input> {
"infinite",
"--no-playlist",
"--ignore-config",
"--no-warnings",
uri,
"-o",
"-",
@@ -125,6 +126,7 @@ pub(crate) async fn _ytdl_metadata(uri: &str) -> Result<Metadata> {
"infinite",
"--no-playlist",
"--ignore-config",
"--no-warnings",
uri,
"-o",
"-",