Fix youtube dl command
This commit is contained in:
parent
dce4df7893
commit
2cd55ca5b9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue