mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-14 16:52:56 +02:00
Add:Start/complete date on audiobook page #383, Fix local hls stream url
This commit is contained in:
@@ -16,4 +16,14 @@ export default class AudioTrack {
|
||||
}
|
||||
return `${window.location.origin}${this.contentUrl}`
|
||||
}
|
||||
|
||||
get relativeContentUrl() {
|
||||
if (!this.contentUrl || this.contentUrl.startsWith('http')) return this.contentUrl
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
return `${process.env.serverUrl}${this.contentUrl}`
|
||||
}
|
||||
|
||||
return this.contentUrl
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user