mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-08 21:08:43 +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')) {
|
if (this.currentTrack.contentUrl?.startsWith('/hls')) {
|
||||||
sessionTrackUrl = this.currentTrack.contentUrl
|
sessionTrackUrl = this.currentTrack.contentUrl
|
||||||
} else {
|
} 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}`
|
this.player.src = `${serverHost}${sessionTrackUrl}`
|
||||||
|
|||||||
Reference in New Issue
Block a user