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 invalid Track object whereas getTracks works as expected #22

Open
wiencheck opened this issue Apr 13, 2020 · 0 comments

Comments

@wiencheck
Copy link

When using Spartan method getTrack(id: String...) Track object is received but most of its properties are nil, when I checked the uri of the object it turns out that actually an Album object was received but when Spartan tried to map it to Track most of the properties were nil.

See the Xcode Quicklook of the object
Zrzut ekranu 2020-04-13 o 14 06 43

You can see that the object is in fact an album.
I think I'm calling the method correctly

Zrzut ekranu 2020-04-13 o 14 07 24

Although this method gives wrong results, using getTracks(ids: [String]...) works correctly and I'll be using it to get single tracks from the API

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

1 participant