Skip to content

getTrack returns invalid Track object whereas getTracks works as expected #22

@wiencheck

Description

@wiencheck

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

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