Spartan icon indicating copy to clipboard operation
Spartan copied to clipboard

`getTrack` returns invalid Track object whereas `getTracks` works as expected

Open wiencheck opened this issue 4 years ago • 0 comments

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

wiencheck avatar Apr 13 '20 12:04 wiencheck