Update readers to handle token refresh

This commit is contained in:
advplyr
2025-07-15 17:22:45 -05:00
parent 80ee88b488
commit f4e0a6121f
7 changed files with 243 additions and 42 deletions
+3 -3
View File
@@ -305,11 +305,11 @@ export default {
if (this.localContentUrl) {
return Capacitor.convertFileSrc(this.localContentUrl)
}
const serverAddress = this.$store.getters['user/getServerAddress']
if (this.ebookFileId) {
return `${serverAddress}/api/items/${this.selectedLibraryItem.id}/ebook/${this.ebookFileId}`
return `/api/items/${this.selectedLibraryItem.id}/ebook/${this.ebookFileId}`
}
return `${serverAddress}/api/items/${this.selectedLibraryItem.id}/ebook`
return `/api/items/${this.selectedLibraryItem.id}/ebook`
},
isPlayerOpen() {
return this.$store.getters['getIsPlayerOpen']