diff options
| author | Jokler <jokler@protonmail.com> | 2020-01-14 16:04:56 +0100 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-01-14 16:04:56 +0100 |
| commit | 6bc3285baa3e51c6fa65cfa5f37de3c56da940d6 (patch) | |
| tree | 4b213ec256773f7b7bdf741f52bf10d5190b85a4 /src/main.rs | |
| parent | 8fe65c0e790e15eab8a3009c7ae6eb272a6bf862 (diff) | |
| download | pokebot-6bc3285baa3e51c6fa65cfa5f37de3c56da940d6.tar.gz pokebot-6bc3285baa3e51c6fa65cfa5f37de3c56da940d6.zip | |
Remove playlist length limit by using VecDeque
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main.rs b/src/main.rs index b93b815..e19a9ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -116,17 +116,6 @@ impl Application { } pub fn add_audio(&self, url: String) { - if self - .playlist - .lock() - .expect("Mutex was not poisoned") - .is_full() - { - info!("Audio playlist is full"); - self.send_message("Playlist is full"); - return; - } - match youtube_dl::get_audio_download_url(url) { Ok((audio_url, audio_title)) => { info!("Found audio url: {}", audio_url); |
