mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-05 17:58:37 +01:00
Fix stream url, after changes to subsonic client api
This commit is contained in:
parent
c4623d7bc3
commit
b590c31e4e
2 changed files with 6 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ const mapToAudioLists = (item) => {
|
|||
duration: item.duration,
|
||||
suffix: item.suffix,
|
||||
bitRate: item.bitRate,
|
||||
musicSrc: subsonic.url('stream', id, { ts: true }),
|
||||
musicSrc: subsonic.streamUrl(id),
|
||||
cover: subsonic.getCoverArtUrl(
|
||||
{
|
||||
coverArtId: config.devFastAccessCoverArt ? item.albumId : id,
|
||||
|
|
|
|||
|
|
@ -45,6 +45,10 @@ const getCoverArtUrl = (record, size) => {
|
|||
return baseUrl(url('getCoverArt', record.coverArtId || 'not_found', options))
|
||||
}
|
||||
|
||||
const streamUrl = (id) => {
|
||||
return baseUrl(url('stream', id, { ts: true }))
|
||||
}
|
||||
|
||||
export default {
|
||||
url,
|
||||
scrobble,
|
||||
|
|
@ -55,4 +59,5 @@ export default {
|
|||
startScan,
|
||||
getScanStatus,
|
||||
getCoverArtUrl,
|
||||
streamUrl,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue