Spartan icon indicating copy to clipboard operation
Spartan copied to clipboard

getTrack() returns a Track only filled with SimplifiedTrack data

Open olmedocr opened this issue 6 years ago • 3 comments

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

olmedocr avatar Nov 30 '18 22:11 olmedocr

@olmedocr Did you get the solution? I am facing the same problem.

@Daltron Can you help me with this? Please...

umairjihan avatar Feb 14 '20 00:02 umairjihan

Same issue... Is there a fix @Daltron?

tjehan avatar Jun 26 '20 15:06 tjehan

Use the .getTracks() method not .getTrack(). Works perfectly for me

Rehan7238 avatar Jun 30 '20 11:06 Rehan7238