Fixed soundcloud song length, closes #1380

This commit is contained in:
Master Kwoth 2017-07-11 01:23:37 +02:00
parent ab3ad4f2fb
commit ec94459722

View File

@ -254,7 +254,8 @@ namespace NadekoBot.Services.Music
ProviderType = MusicType.Soundcloud,
Query = svideo.TrackLink,
AlbumArt = svideo.artwork_url,
QueuerName = queuerName
QueuerName = queuerName,
TotalTime = TimeSpan.FromMilliseconds(svideo.Duration)
});
public SongInfo ResolveLocalSong(string query, string queuerName)