Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
olmedocr opened this issue Nov 30, 2018 · 3 comments
Open

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

olmedocr opened this issue Nov 30, 2018 · 3 comments

Comments

@olmedocr
Copy link

olmedocr commented Nov 30, 2018

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

@umairjihan
Copy link

umairjihan commented Feb 14, 2020

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

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

@tjehan
Copy link

tjehan commented Jun 26, 2020

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

@Rehan7238
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants