mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: add playlist folder sorting
This commit is contained in:
@@ -41,6 +41,15 @@ type MetadataTrack struct {
|
|||||||
|
|
||||||
type MetadataPlaylist struct {
|
type MetadataPlaylist struct {
|
||||||
TrackList []MetadataTrack `json:"track_list"`
|
TrackList []MetadataTrack `json:"track_list"`
|
||||||
|
Info MetadataPlaylistInfo `json:"playlist_info"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type MetadataPlaylistInfo struct {
|
||||||
|
Owner MetadataPlaylistOwner `json:"owner"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type MetadataPlaylistOwner struct {
|
||||||
|
Name string `json:"name"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func Download(application *app.App, url string, output_folder string) error {
|
func Download(application *app.App, url string, output_folder string) error {
|
||||||
@@ -90,6 +99,7 @@ func Download(application *app.App, url string, output_folder string) error {
|
|||||||
CoverURL: track.Images,
|
CoverURL: track.Images,
|
||||||
OutputDir: output_folder,
|
OutputDir: output_folder,
|
||||||
SpotifyID: track.SpotifyID,
|
SpotifyID: track.SpotifyID,
|
||||||
|
PlaylistName: metadata.Info.Owner.Name,
|
||||||
}
|
}
|
||||||
|
|
||||||
application.DownloadTrack(downloadRequest)
|
application.DownloadTrack(downloadRequest)
|
||||||
|
|||||||
Reference in New Issue
Block a user