aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-06 00:54:24 +0100
committerJokler <jokler@protonmail.com>2020-01-06 00:54:24 +0100
commitbda07171859d152abf281f98b36ec7a4d3df7365 (patch)
tree7865d0a44b8cac9ba11a45bee7e3a74b98537568
parent75decc7c0ad163bb8ff9bc2fb62b2da33610c655 (diff)
downloadpokebot-bda07171859d152abf281f98b36ec7a4d3df7365.tar.gz
pokebot-bda07171859d152abf281f98b36ec7a4d3df7365.zip
Ytdl: Add fallback from 'bestaudio' to 'best'
-rw-r--r--src/state.rs4
1 files 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);
}