(&mut self, songs: Vec<Song>)
| 285 | |
| 286 | #[tracing::instrument(level = "debug", skip(self, songs))] |
| 287 | pub fn play_next_multiple(&mut self, songs: Vec<Song>) { |
| 288 | if songs.is_empty() { |
| 289 | return; |
| 290 | } |
| 291 | |
| 292 | let first_song = songs.first(); |
| 293 | if let Some(first_song) = first_song { |
| 294 | self.play_next(first_song.clone()) |
| 295 | } |
| 296 | |
| 297 | if songs.len() > 1 { |
| 298 | self.add_to_queue_at_index(songs[1..].to_vec(), self.data.queue.current_index + 1); |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | #[tracing::instrument(level = "debug", skip(self, new_index))] |
| 303 | pub fn change_index(&mut self, new_index: usize, force: bool) { |
no test coverage detected