feat: self host books

This commit is contained in:
Cory Dransfeldt 2024-04-18 13:59:09 -07:00
parent 52a6c2ed58
commit 87ae2d6297
No known key found for this signature in database
9 changed files with 53 additions and 91 deletions

View file

@ -166,6 +166,7 @@ export default {
let normalized = {
image: item['image'],
url: item['url'],
type: item.type
}
if (item.type === 'album') {
normalized['title'] = item['title']
@ -196,6 +197,7 @@ export default {
return normalized
}),
calculatePlayPercentage: (plays, mostPlayed) => `${plays/mostPlayed * 100}%`,
bookStatus: (books, status) => books.filter(book => book.status === status),
// tags
filterTags: (tags) => {