mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-24 05:28:35 +02:00
Update web player track index to fallback to 1
This commit is contained in:
@@ -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