Fix youtube dl command

This commit is contained in:
hodasemi 2018-09-16 09:58:47 +02:00
parent dce4df7893
commit 2cd55ca5b9

View file

@ -51,7 +51,7 @@ fn convert_output(out: &Output) -> Result<Vec<String>, String> {
files.push(file_name.trim().to_string());
}
}
}
}
let mut mp3s = Vec::new();
@ -67,7 +67,7 @@ fn convert_output(out: &Output) -> Result<Vec<String>, String> {
}
pub fn youtube_dl(uri: &str) -> Result<Vec<Song>, String> {
let args = ["-x", "--audio-format", "mp3", "--audio-quality", "5", uri];
let args = ["-f", "bestaudio/best", "-o", "%(title)s", uri];
let out = match Command::new("youtube-dl")
.args(&args)