From bda07171859d152abf281f98b36ec7a4d3df7365 Mon Sep 17 00:00:00 2001 From: Jokler Date: Mon, 6 Jan 2020 00:54:24 +0100 Subject: Ytdl: Add fallback from 'bestaudio' to 'best' --- src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state.rs b/src/state.rs index 6f50c75..b10dc15 100644 --- a/src/state.rs +++ b/src/state.rs @@ -167,7 +167,7 @@ impl State { } pub fn add_audio<'a>(&self, uri: String) { - let ytdl_args = ["-f", "bestaudio", "-g", &uri, "-o", "-"]; + let ytdl_args = ["-f", "bestaudio/best", "-g", &uri, "-o", "-"]; let ytdl_output = Command::new("youtube-dl") .args(&ytdl_args) @@ -236,7 +236,7 @@ impl State { self .pipeline .get_by_name("volume") - .expect("Http source should be registered") + .expect("Volume filter should be registered") .set_property("volume", &volume); } -- cgit v1.2.3-70-g09d2