Add:iOS offline ebooks

This commit is contained in:
advplyr 2023-06-19 17:42:15 -05:00
parent 8b39ba9c92
commit 147f89f870
13 changed files with 157 additions and 26 deletions

View file

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