Releases: zackradisic/soundcloud-api
Releases · zackradisic/soundcloud-api
v0.1.4
v0.1.3
New
APIOptions
soundcloudapi.New() now accepts an APIOptions struct which allows you to configure the soundcloudapi.API struct.
sc, err := soundcloudapi.New(soundcloudapi.APIOptions{
ClientID: "dsfsdfsfdsfd", // optional
HTTPClient: http.DefaultClient, // specify a http client to make requests with
StripMobilePrefix: true, // convert mobile URLs to regular URLs
ConvertFirebaseURLs: true // convert firebase URLs to regular urls
})
New soundcloudapi.API Properties
soundcloudapi.API has the new properties StripMobilePrefix and ConvertFirebaseURLs which set behaviour for converting URLs.
sc.StripMobilePrefix = true
sc.ConvertFirebaseURLs = true
v0.1.2
New
soundcloudapi.API.GetDownloadURL()
- gets the download URL for a track, useful for implementing your own downloading algorithm
soundcloudapi.StripMobilePrefix()
- converts mobile URLs to regular URLs (package does this by default for every function)
soundcloudapi.ConvertFirebaseURL()
- converts firebase URLs to regular URLs (URLs of the form:
https://soundcloud.app.goo.gl/xxxxxx
)
- converts firebase URLs to regular URLs (URLs of the form:
v0.1.1
New
- IsPersonalizedTrackURL(url string)
- IsSearchURL(url string)