Skip to content

getTrack() returns a Track only filled with SimplifiedTrack data  #18

@olmedocr

Description

@olmedocr

Spartan.getTrack(id: "11dFghVXANMlKmJXsNCbNl", success: { (track) in self.currentSong = track // FIXME: gets the album instead of the song self.miniPlayer?.configure(song: self.currentSong) }) { (error) in print("Error while fetching the track: \(error.description)") }
The above code is the one I'm currently using to retrieve a Track, but no album data is filled in it, is this behaviour intentional?

captura de pantalla 2018-11-30 a las 17 44 51

This is the Track returned by Spartan

Using the latest version available in Cocoapods, Swift 4.0 and Xcode 10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions