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:
@@ -42,6 +42,7 @@ pub(crate) async fn _ytdl(uri: &str, pre_args: &[&str]) -> Result<Input> {
|
|||||||
"infinite",
|
"infinite",
|
||||||
"--no-playlist",
|
"--no-playlist",
|
||||||
"--ignore-config",
|
"--ignore-config",
|
||||||
|
"--no-warnings",
|
||||||
uri,
|
uri,
|
||||||
"-o",
|
"-o",
|
||||||
"-",
|
"-",
|
||||||
@@ -125,6 +126,7 @@ pub(crate) async fn _ytdl_metadata(uri: &str) -> Result<Metadata> {
|
|||||||
"infinite",
|
"infinite",
|
||||||
"--no-playlist",
|
"--no-playlist",
|
||||||
"--ignore-config",
|
"--ignore-config",
|
||||||
|
"--no-warnings",
|
||||||
uri,
|
uri,
|
||||||
"-o",
|
"-o",
|
||||||
"-",
|
"-",
|
||||||
|
|||||||
Reference in New Issue
Block a user