Removed module projects because it can't work like that atm. Commented out package commands.
This commit is contained in:
		
							
								
								
									
										23
									
								
								NadekoBot.Core/Modules/Music/Extensions/Extensions.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								NadekoBot.Core/Modules/Music/Extensions/Extensions.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| using NadekoBot.Modules.Music.Common; | ||||
| using NadekoBot.Core.Services.Database.Models; | ||||
| using NadekoBot.Core.Services.Impl; | ||||
| using System; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace NadekoBot.Modules.Music.Extensions | ||||
| { | ||||
|     public static class Extensions | ||||
|     { | ||||
|         public static Task<SongInfo> GetSongInfo(this SoundCloudVideo svideo) => | ||||
|             Task.FromResult(new SongInfo | ||||
|             { | ||||
|                 Title = svideo.FullName, | ||||
|                 Provider = "SoundCloud", | ||||
|                 Uri = () => svideo.StreamLink(), | ||||
|                 ProviderType = MusicType.Soundcloud, | ||||
|                 Query = svideo.TrackLink, | ||||
|                 Thumbnail = svideo.artwork_url, | ||||
|                 TotalTime = TimeSpan.FromMilliseconds(svideo.Duration) | ||||
|             }); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user