Fix: add user token to single file download request #16

This commit is contained in:
advplyr
2021-10-25 05:42:46 -05:00
parent cd3277a5f9
commit aef09ebada
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ export default {
var fileext = track.ext
var relTrackPath = track.path.replace('\\', '/').replace(this.audiobook.path.replace('\\', '/'), '')
var url = `${this.$store.state.serverUrl}/s/book/${this.audiobookId}/${relTrackPath}`
var url = `${this.$store.state.serverUrl}/s/book/${this.audiobookId}/${relTrackPath}?token=${this.userToken}`
this.startDownload(url, fileext, downloadObject)
} else {
// Multi-track merge