mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Fix download requests, v1.4.0 rollout
This commit is contained in:
parent
d9d34e87e0
commit
19dcb6173e
@ -69,7 +69,7 @@ export default {
|
||||
|
||||
return {
|
||||
...track,
|
||||
relativePath: trackPath.replace(audiobookPath)
|
||||
relativePath: trackPath.replace(audiobookPath, '')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -26,9 +26,7 @@
|
||||
<td class="text-center">
|
||||
<p>{{ track.index }}</p>
|
||||
</td>
|
||||
<td class="font-book">
|
||||
{{ track.filename }}
|
||||
</td>
|
||||
<td class="font-book">{{ track.filename }}</td>
|
||||
<td class="font-mono">
|
||||
{{ $bytesPretty(track.size) }}
|
||||
</td>
|
||||
@ -77,7 +75,7 @@ export default {
|
||||
|
||||
return {
|
||||
...track,
|
||||
relativePath: trackPath.replace(audiobookPath)
|
||||
relativePath: trackPath.replace(audiobookPath, '')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -187,8 +187,7 @@ export const actions = {
|
||||
commit('set', [])
|
||||
})
|
||||
return true
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export const mutations = {
|
||||
|
@ -127,6 +127,9 @@ class Server {
|
||||
// Metadata folder static path
|
||||
app.use('/metadata', this.authMiddleware.bind(this), express.static(this.MetadataPath))
|
||||
|
||||
// Downloads folder static path
|
||||
app.use('/downloads', this.authMiddleware.bind(this), express.static(this.downloadManager.downloadDirPath))
|
||||
|
||||
// Static folder
|
||||
app.use(express.static(Path.join(global.appRoot, 'static')))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user