koel/core

Can't load song

Opened this issue · 1 comments

koel version 4.4.0

  • url is wrong, should be api/${song.id}/play/1/128
  • server accepts jwt-token but you use api-token

    core/js/stores/song.ts

    Lines 200 to 205 in 31adae0

    getSourceUrl: (song: Song): string => {
    if (isMobile.any && preferenceStore.transcodeOnMobile) {
    return `${sharedStore.state.cdnUrl}play/${song.id}/1/128?api_token=${auth.getToken()}`
    }
    return `${sharedStore.state.cdnUrl}play/${song.id}?api_token=${auth.getToken()}`
    },

You appear to be using the master branch of core (client) against the 4.4.0 tag of API.