mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-31 15:19:34 +02:00
Update web player track index to fallback to 1
This commit is contained in:
parent
82cddde15f
commit
a53a96ecf5
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ class AbsAudioPlayerWeb extends WebPlugin {
|
|||
if (this.currentTrack.contentUrl?.startsWith('/hls')) {
|
||||
sessionTrackUrl = this.currentTrack.contentUrl
|
||||
} else {
|
||||
sessionTrackUrl = `/public/session/${this.playbackSession.id}/track/${this.currentTrack.index}`
|
||||
sessionTrackUrl = `/public/session/${this.playbackSession.id}/track/${this.currentTrack.index || 1}`
|
||||
}
|
||||
|
||||
this.player.src = `${serverHost}${sessionTrackUrl}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue