mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 13:54:01 +02:00
Add:iOS offline ebooks
This commit is contained in:
@@ -244,12 +244,13 @@ export default {
|
||||
async extract() {
|
||||
this.loading = true
|
||||
|
||||
var buff = await this.$axios.$get(this.url, {
|
||||
const buff = await this.$axios.$get(this.url, {
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
Authorization: `Bearer ${this.userToken}`
|
||||
}
|
||||
})
|
||||
|
||||
const archive = await Archive.open(buff)
|
||||
const originalFilesObject = await archive.getFilesObject()
|
||||
// to support images in subfolders we need to flatten the object
|
||||
|
||||
Reference in New Issue
Block a user