mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-30 15:45:14 +02:00
Add:iOS offline ebooks
This commit is contained in:
parent
8b39ba9c92
commit
147f89f870
13 changed files with 157 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue