reverted back 01private's changes
added 1 for avatars
This commit is contained in:
parent
3674512073
commit
07962f9e2e
@ -24,6 +24,7 @@ namespace NadekoBot.Modules.Music.Classes
|
|||||||
public string Query { get; set; }
|
public string Query { get; set; }
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
public string Uri { get; set; }
|
public string Uri { get; set; }
|
||||||
|
public string AlbumArt { get; set; }
|
||||||
}
|
}
|
||||||
public class Song
|
public class Song
|
||||||
{
|
{
|
||||||
@ -319,6 +320,7 @@ namespace NadekoBot.Modules.Music.Classes
|
|||||||
Uri = svideo.StreamLink,
|
Uri = svideo.StreamLink,
|
||||||
ProviderType = musicType,
|
ProviderType = musicType,
|
||||||
Query = svideo.TrackLink,
|
Query = svideo.TrackLink,
|
||||||
|
AlbumArt = svideo.artwork_url,
|
||||||
})
|
})
|
||||||
{ TotalLength = TimeSpan.FromMilliseconds(svideo.Duration) };
|
{ TotalLength = TimeSpan.FromMilliseconds(svideo.Duration) };
|
||||||
}
|
}
|
||||||
@ -333,6 +335,7 @@ namespace NadekoBot.Modules.Music.Classes
|
|||||||
Uri = svideo.StreamLink,
|
Uri = svideo.StreamLink,
|
||||||
ProviderType = MusicType.Normal,
|
ProviderType = MusicType.Normal,
|
||||||
Query = svideo.TrackLink,
|
Query = svideo.TrackLink,
|
||||||
|
AlbumArt = svideo.artwork_url,
|
||||||
})
|
})
|
||||||
{ TotalLength = TimeSpan.FromMilliseconds(svideo.Duration) };
|
{ TotalLength = TimeSpan.FromMilliseconds(svideo.Duration) };
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,7 @@ namespace NadekoBot.Modules.Music.Classes
|
|||||||
public int Duration { get; set; }
|
public int Duration { get; set; }
|
||||||
[JsonProperty("permalink_url")]
|
[JsonProperty("permalink_url")]
|
||||||
public string TrackLink { get; set; } = "";
|
public string TrackLink { get; set; } = "";
|
||||||
|
public string artwork_url { get; set; } = "";
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public string StreamLink => $"https://api.soundcloud.com/tracks/{Id}/stream?client_id={NadekoBot.Credentials.SoundCloudClientId}";
|
public string StreamLink => $"https://api.soundcloud.com/tracks/{Id}/stream?client_id={NadekoBot.Credentials.SoundCloudClientId}";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user