Add:Filter and sort for podcast episodes table, Update:Sync local media progress when media progress is updated on the server

This commit is contained in:
advplyr
2022-06-01 19:38:26 -05:00
parent c4aca22c28
commit 99bf960b8a
10 changed files with 283 additions and 10 deletions
+4
View File
@@ -195,6 +195,10 @@ class AbsDatabaseWeb extends WebPlugin {
return null
}
async syncServerMediaProgressWithLocalMediaProgress(payload) {
return null
}
async updateLocalTrackOrder({ localLibraryItemId, tracks }) {
return []
}
+4
View File
@@ -70,6 +70,10 @@ class DbService {
return AbsDatabase.syncLocalMediaProgressWithServer()
}
syncServerMediaProgressWithLocalMediaProgress(payload) {
return AbsDatabase.syncServerMediaProgressWithLocalMediaProgress(payload)
}
updateLocalTrackOrder(payload) {
return AbsDatabase.updateLocalTrackOrder(payload)
}
+1
View File
@@ -91,6 +91,7 @@ class ServerSocket extends EventEmitter {
console.log('[SOCKET] User Item Progress Updated', JSON.stringify(data))
var progress = data.data
this.$store.commit('user/updateUserMediaProgress', progress)
this.emit('user_media_progress_updated', progress)
}
}