Fix API including basepath in tracks contentUrl

This commit is contained in:
advplyr 2025-02-01 16:47:36 -06:00
parent a58d486c44
commit aebb3ff413
6 changed files with 16 additions and 12 deletions

View file

@ -169,7 +169,7 @@ class PodcastEpisode extends Model {
const track = structuredClone(this.audioFile)
track.startOffset = 0
track.title = this.audioFile.metadata.filename
track.contentUrl = `${global.RouterBasePath}/api/items/${libraryItemId}/file/${track.ino}`
track.contentUrl = `/api/items/${libraryItemId}/file/${track.ino}`
return track
}