mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 09:14:40 +02:00
Update HLS stream endpoints to not include user token
This commit is contained in:
parent
1afb8840db
commit
1f7b181b7b
3 changed files with 4 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
export default class AudioTrack {
|
||||
constructor(track, sessionId, userToken, routerBasePath) {
|
||||
constructor(track, sessionId, routerBasePath) {
|
||||
this.index = track.index || 0
|
||||
this.startOffset = track.startOffset || 0 // Total time of all previous tracks
|
||||
this.duration = track.duration || 0
|
||||
|
@ -11,7 +11,7 @@ export default class AudioTrack {
|
|||
this.sessionId = sessionId
|
||||
this.routerBasePath = routerBasePath || ''
|
||||
if (this.contentUrl?.startsWith('/hls')) {
|
||||
this.sessionTrackUrl = `${this.contentUrl}?token=${userToken}`
|
||||
this.sessionTrackUrl = this.contentUrl
|
||||
} else {
|
||||
this.sessionTrackUrl = `/public/session/${sessionId}/track/${this.index}`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue