fixed .autoplay

This commit is contained in:
Master Kwoth 2017-07-09 01:37:17 +02:00
parent 9eab7d949f
commit fad0b908c8
2 changed files with 3 additions and 3 deletions

View File

@ -268,7 +268,7 @@ namespace NadekoBot.Services.Music
try
{
_log.Info("Loading related song");
await _musicService.TryQueueRelatedSongAsync(data.Song.Query, OutputTextChannel, VoiceChannel);
await _musicService.TryQueueRelatedSongAsync(data.Song, OutputTextChannel, VoiceChannel);
Queue.Next();
}
catch

View File

@ -182,9 +182,9 @@ namespace NadekoBot.Services.Music
return null;
}
public async Task TryQueueRelatedSongAsync(string query, ITextChannel txtCh, IVoiceChannel vch)
public async Task TryQueueRelatedSongAsync(SongInfo song, ITextChannel txtCh, IVoiceChannel vch)
{
var related = (await _google.GetRelatedVideosAsync(query, 4)).ToArray();
var related = (await _google.GetRelatedVideosAsync(song.VideoId, 4)).ToArray();
if (!related.Any())
return;