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 {
...track,
relativePath: trackPath.replace(audiobookPath)
relativePath: trackPath.replace(audiobookPath, '')
}
})
},

View File

@ -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, '')
}
})
},

View File

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

View File

@ -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')))