aboutsummaryrefslogtreecommitdiffstats
path: root/src/bot/music.rs
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-10-04 00:16:55 +0200
committerGitHub <noreply@github.com>2020-10-04 00:16:55 +0200
commit23671b51b4e207574a63bce820acbf43169e2b6c (patch)
tree326f7948ca7ca952201cabffe3aea9fc2728f9ee /src/bot/music.rs
parent46ce39a312144bf778962c36a7b578b62a639956 (diff)
parent50087bc3bec74069d21f972c246ca22a6d70c1ed (diff)
downloadpokebot-23671b51b4e207574a63bce820acbf43169e2b6c.tar.gz
pokebot-23671b51b4e207574a63bce820acbf43169e2b6c.zip
Merge pull request #67 from kilmanio/master
Added retry attempt when youtube-dl fails
Diffstat (limited to 'src/bot/music.rs')
-rw-r--r--src/bot/music.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot/music.rs b/src/bot/music.rs
index 19b1c3f..90305d0 100644
--- a/src/bot/music.rs
+++ b/src/bot/music.rs
@@ -185,7 +185,7 @@ impl MusicBot {
}
pub async fn add_audio(&self, url: String, user: String) {
- match crate::youtube_dl::get_audio_download_url(url).await {
+ match crate::youtube_dl::get_audio_download_from_url(url).await {
Ok(mut metadata) => {
metadata.added_by = user;
info!("Found audio url: {}", metadata.url);