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 {
|
return {
|
||||||
...track,
|
...track,
|
||||||
relativePath: trackPath.replace(audiobookPath)
|
relativePath: trackPath.replace(audiobookPath, '')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -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, '')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -187,8 +187,7 @@ export const actions = {
|
|||||||
commit('set', [])
|
commit('set', [])
|
||||||
})
|
})
|
||||||
return true
|
return true
|
||||||
},
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const mutations = {
|
export const mutations = {
|
||||||
|
@ -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')))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user