Something went wrong. Try again.
a simple (and fast) soundcloud downloader
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126package downcloud
type TranscodingFormat struct { Protocol string `json:"protocol"` MimeType string `json:"mime_type"`}
type Transcoding struct { URL string `json:"url"` Format TranscodingFormat `json:"format"`}
type Media struct { Transcodings []Transcoding `json:"transcodings"`}
type PublisherMetadata struct { Artist string `json:"artist,omitempty"` AlbumTitle string `json:"album_title,omitempty"` Explicit bool `json:"explicit,omitempty"`}
type User struct { ID int64 `json:"id"` Username string `json:"username"` Permalink string `json:"permalink"`}
type Track struct { ID int64 `json:"id"` Title string `json:"title"` Description string `json:"description"` Downloadable bool `json:"downloadable"` HasDownloadsLeft bool `json:"has_downloads_left"` User User `json:"user"` Permalink string `json:"permalink"` Media Media `json:"media"` PublisherMetadata *PublisherMetadata `json:"publisher_metadata,omitempty"` ArtworkURL string `json:"artwork_url"` WaveformURL string `json:"waveform_url"` Duration int64 `json:"duration"`}
type AudioMetadata struct { Title string Artist string Album string Description string URL string ArtworkURL string}
type SaveAudioOptions struct { StreamURL string IsDownload bool CustomOutFile string User User Permalink string MimeType string Format string CoverFile string Debug bool OutDir string Duration int64 WaveformURL string Metadata *AudioMetadata OAuthToken string}
type ArtistData struct { User User `json:"user"` Tracks []Track `json:"tracks"`}
type PlaylistData struct { Title string `json:"title"` User User `json:"user"` Permalink string `json:"permalink"` Tracks []Track `json:"tracks"`}
type DownloadOptions struct { ClientID string OAuthToken string OutDir string Debug bool Format string Album string CustomOutFile string}
type DownloadPlaylistOptions struct { ClientID string OAuthToken string OutDir string Debug bool Format string ArchiveFile string SyncFile string}
type DownloadArtistOptions struct { ClientID string OAuthToken string OutDir string Debug bool Format string ArchiveFile string SyncFile string}
type DownloadResult struct { FilePath string Track Track}
type TrackError struct { Track Track Err error}
type PlaylistDownloadResult struct { Results []DownloadResult Errors []TrackError}