Skip to content

Sort by rating seems to be broken #16

@f0e

Description

@f0e

Attempting to sort playlist by rating results in this error

xpui.js:1 Uncaught (in promise) NotFoundError: GET request to sp://desktop/v1/version failed with status code 404

The calls to this uri come from isAppLaterThan - https://github.com/brimell/spicetify-star-ratings/blob/main/src/api.tsx#L79-L83.

As a bandaid solution, I resolved the issue by removing both the calls to this function when checking if the client is V2 in the API methods for moving tracks (here and here) and instead just assumed the client was V2. Would be good to get a proper fix for this though.

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