Print list of downloaded songs at finished download
This commit is contained in:
parent
f2ab6f1314
commit
2d0a2f6497
1 changed files with 12 additions and 0 deletions
|
@ -86,6 +86,18 @@ impl Play {
|
|||
}
|
||||
};
|
||||
|
||||
let mut info = if source.len() == 1 {
|
||||
"Finished downloading song:".to_string()
|
||||
} else {
|
||||
"Finished downloading songs:".to_string()
|
||||
};
|
||||
|
||||
for song in &source {
|
||||
info = format!("{}\n\t{}", info, song.name);
|
||||
}
|
||||
|
||||
print_error!(msg.channel_id.say(info));
|
||||
|
||||
{
|
||||
let playlist_mutex = self.media.playlist_mut();
|
||||
playlist_mutex.borrow_mut().append(&mut source);
|
||||
|
|
Loading…
Reference in a new issue