Repull video with it's uri if it's a youtube song, every time a song is played, #1334
This commit is contained in:
		@@ -463,15 +463,15 @@ namespace NadekoBot.Modules.Music
 | 
			
		||||
        {
 | 
			
		||||
            var mp = await _music.GetOrCreatePlayer(Context);
 | 
			
		||||
 | 
			
		||||
            var songs = mp.QueueArray().Songs
 | 
			
		||||
                .Select(s => new PlaylistSong()
 | 
			
		||||
            var songs = await Task.WhenAll(mp.QueueArray().Songs
 | 
			
		||||
                .Select(async s => new PlaylistSong()
 | 
			
		||||
                {
 | 
			
		||||
                    Provider = s.Provider,
 | 
			
		||||
                    ProviderType = s.ProviderType,
 | 
			
		||||
                    Title = s.Title,
 | 
			
		||||
                    Uri = s.Uri,
 | 
			
		||||
                    Uri = await s.Uri(),
 | 
			
		||||
                    Query = s.Query,
 | 
			
		||||
                }).ToList();
 | 
			
		||||
                }).ToList());
 | 
			
		||||
 | 
			
		||||
            MusicPlaylist playlist;
 | 
			
		||||
            using (var uow = _db.UnitOfWork)
 | 
			
		||||
@@ -481,7 +481,7 @@ namespace NadekoBot.Modules.Music
 | 
			
		||||
                    Name = name,
 | 
			
		||||
                    Author = Context.User.Username,
 | 
			
		||||
                    AuthorId = Context.User.Id,
 | 
			
		||||
                    Songs = songs,
 | 
			
		||||
                    Songs = songs.ToList(),
 | 
			
		||||
                };
 | 
			
		||||
                uow.MusicPlaylists.Add(playlist);
 | 
			
		||||
                await uow.CompleteAsync().ConfigureAwait(false);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user