mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-17 08:12:00 +02:00
Fix: add user token to single file download request #16
This commit is contained in:
parent
cd3277a5f9
commit
aef09ebada
3 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,8 @@ android {
|
||||||
applicationId "com.audiobookshelf.app"
|
applicationId "com.audiobookshelf.app"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 24
|
versionCode 25
|
||||||
versionName "0.9.8-beta"
|
versionName "0.9.9-beta"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
aaptOptions {
|
aaptOptions {
|
||||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "audiobookshelf-app",
|
"name": "audiobookshelf-app",
|
||||||
"version": "v0.9.8-beta",
|
"version": "v0.9.9-beta",
|
||||||
"author": "advplyr",
|
"author": "advplyr",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt --hostname localhost --port 1337",
|
"dev": "nuxt --hostname localhost --port 1337",
|
||||||
|
|
|
@ -300,7 +300,7 @@ export default {
|
||||||
var fileext = track.ext
|
var fileext = track.ext
|
||||||
|
|
||||||
var relTrackPath = track.path.replace('\\', '/').replace(this.audiobook.path.replace('\\', '/'), '')
|
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)
|
this.startDownload(url, fileext, downloadObject)
|
||||||
} else {
|
} else {
|
||||||
// Multi-track merge
|
// Multi-track merge
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue