Add podcast pages, android download podcast, scan podcast folders

This commit is contained in:
advplyr 2022-04-10 20:31:47 -05:00
parent ef65b4c278
commit c94e57f55e
26 changed files with 789 additions and 397 deletions

View file

@ -63,7 +63,6 @@ class LocalStorage {
async setBookshelfListView(useIt) {
try {
await Storage.set({ key: 'bookshelfListView', value: useIt ? '1' : '0' })
this.getBookshelfListView()
} catch (error) {
console.error('[LocalStorage] Failed to set bookshelf list view', error)
}
@ -78,6 +77,25 @@ class LocalStorage {
return false
}
}
async setLastLibraryId(libraryId) {
try {
await Storage.set({ key: 'lastLibraryId', value: libraryId })
console.log('[LocalStorage] Set Last Library Id', libraryId)
} catch (error) {
console.error('[LocalStorage] Failed to set current library', error)
}
}
async getLastLibraryId() {
try {
var obj = await Storage.get({ key: 'lastLibraryId' }) || {}
return obj.value || null
} catch (error) {
console.error('[LocalStorage] Failed to get last library id', error)
return false
}
}
}