Fixed .save
This commit is contained in:
parent
4132565948
commit
568cdfbd3c
@ -466,15 +466,14 @@ namespace NadekoBot.Modules.Music
|
||||
{
|
||||
var mp = await _music.GetOrCreatePlayer(Context);
|
||||
|
||||
var songs = await Task.WhenAll(mp.QueueArray().Songs
|
||||
.Select(async s => new PlaylistSong()
|
||||
var songs = mp.QueueArray().Songs
|
||||
.Select(s => new PlaylistSong()
|
||||
{
|
||||
Provider = s.Provider,
|
||||
ProviderType = s.ProviderType,
|
||||
Title = s.Title,
|
||||
Uri = await s.Uri(),
|
||||
Query = s.Query,
|
||||
}).ToList());
|
||||
}).ToList();
|
||||
|
||||
MusicPlaylist playlist;
|
||||
using (var uow = _db.UnitOfWork)
|
||||
|
@ -154,7 +154,10 @@ namespace NadekoBot.Services
|
||||
{
|
||||
await channel.EmbedAsync(embedData.ToEmbed(), embedData.PlainText?.SanitizeMentions() ?? "").ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception ex) { _log.Warn(ex); }
|
||||
catch (Exception ex)
|
||||
{
|
||||
_log.Warn(ex);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user