Change:Sleep timer shake to extend time 15m and fade out audio #44 #10, Change:Audio player show time remaining accounting for current playback speed #40, Fix:highlighted current chapter, Update api endpoints

This commit is contained in:
advplyr
2021-11-26 18:27:18 -06:00
parent d3343d722f
commit edc45addc9
17 changed files with 272 additions and 117 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ export default {
var audiobook = null
if (app.$server.connected) {
audiobook = await app.$axios.$get(`/api/audiobook/${audiobookId}`).catch((error) => {
audiobook = await app.$axios.$get(`/api/books/${audiobookId}`).catch((error) => {
console.error('Failed', error)
return false
})
@@ -229,7 +229,7 @@ export default {
if (this.$server.connected) {
await this.$axios
.$patch(`/api/user/audiobook/${this.audiobookId}/reset-progress`)
.$patch(`/api/me/audiobook/${this.audiobookId}/reset-progress`)
.then(() => {
console.log('Progress reset complete')
this.$toast.success(`Your progress was reset`)
@@ -245,7 +245,7 @@ export default {
audiobookUpdated() {
console.log('Audiobook Updated - Fetch full audiobook')
this.$axios
.$get(`/api/audiobook/${this.audiobookId}`)
.$get(`/api/books/${this.audiobookId}`)
.then((audiobook) => {
this.audiobook = audiobook
})
+1 -1
View File
@@ -42,7 +42,7 @@ export default {
return redirect(`/connect?redirect=${route.path}`)
}
var collection = await app.$axios.$get(`/api/collection/${params.id}`).catch((error) => {
var collection = await app.$axios.$get(`/api/collections/${params.id}`).catch((error) => {
console.error('Failed', error)
return false
})
+1 -1
View File
@@ -49,7 +49,7 @@ export default {
return
}
this.isFetching = true
var results = await this.$axios.$get(`/api/audiobooks?q=${value}`).catch((error) => {
var results = await this.$axios.$get(`/api/books?q=${value}`).catch((error) => {
console.error('Search error', error)
return []
})