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
+19 -1
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
}
}
}
+1 -1
View File
@@ -1,4 +1,3 @@
import Vue from 'vue'
import { io } from 'socket.io-client'
import EventEmitter from 'events'
@@ -58,6 +57,7 @@ class ServerSocket extends EventEmitter {
this.connected = true
this.$store.commit('setSocketConnected', true)
this.emit('connection-update', true)
this.socket.emit('auth', this.token) // Required to connect a user with their socket
}
onDisconnect(reason) {