Change: laying the groundwork for android auto

This commit is contained in:
advplyr
2021-11-10 20:39:25 -06:00
parent 44f535020d
commit 52e3ea0a99
11 changed files with 423 additions and 175 deletions
-15
View File
@@ -145,21 +145,6 @@ export const actions = {
},
useDownloaded({ commit, rootGetters }) {
commit('set', rootGetters['downloads/getAudiobooks'])
},
setNativeAudiobooks({ state }) {
var audiobooks = state.audiobooks.map(ab => {
var _book = ab.book
return {
id: ab.id,
title: _book.title,
author: _book.author,
duration: ab.duration,
size: ab.size,
cover: _book.cover || '',
series: _book.series || ''
}
})
MyNativeAudio.setAudiobooks({ audiobooks: audiobooks })
}
}