diff options
| author | Jokler <jokler@protonmail.com> | 2020-10-04 00:16:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-04 00:16:55 +0200 |
| commit | 23671b51b4e207574a63bce820acbf43169e2b6c (patch) | |
| tree | 326f7948ca7ca952201cabffe3aea9fc2728f9ee /src/bot/music.rs | |
| parent | 46ce39a312144bf778962c36a7b578b62a639956 (diff) | |
| parent | 50087bc3bec74069d21f972c246ca22a6d70c1ed (diff) | |
| download | pokebot-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.rs | 2 |
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); |
