mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-16 13:51:03 +01:00
Update web player track index to fallback to 1
This commit is contained in:
1 parent
82cddde15f
commit
a53a96ecf5
1 file changed
+1
-1
@@ -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}`
|
||||
|
||||
Reference in new issue
Block a user