Fix download requests, v1.4.0 rollout

This commit is contained in:
advplyr 2021-10-06 07:23:32 -05:00
parent d9d34e87e0
commit 19dcb6173e
4 changed files with 7 additions and 7 deletions

View File

@ -69,7 +69,7 @@ export default {
return { return {
...track, ...track,
relativePath: trackPath.replace(audiobookPath) relativePath: trackPath.replace(audiobookPath, '')
} }
}) })
}, },

View File

@ -26,9 +26,7 @@
<td class="text-center"> <td class="text-center">
<p>{{ track.index }}</p> <p>{{ track.index }}</p>
</td> </td>
<td class="font-book"> <td class="font-book">{{ track.filename }}</td>
{{ track.filename }}
</td>
<td class="font-mono"> <td class="font-mono">
{{ $bytesPretty(track.size) }} {{ $bytesPretty(track.size) }}
</td> </td>
@ -77,7 +75,7 @@ export default {
return { return {
...track, ...track,
relativePath: trackPath.replace(audiobookPath) relativePath: trackPath.replace(audiobookPath, '')
} }
}) })
}, },

View File

@ -187,8 +187,7 @@ export const actions = {
commit('set', []) commit('set', [])
}) })
return true return true
}, }
} }
export const mutations = { export const mutations = {

View File

@ -127,6 +127,9 @@ class Server {
// Metadata folder static path // Metadata folder static path
app.use('/metadata', this.authMiddleware.bind(this), express.static(this.MetadataPath)) 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 // Static folder
app.use(express.static(Path.join(global.appRoot, 'static'))) app.use(express.static(Path.join(global.appRoot, 'static')))