chore: book meta

This commit is contained in:
Cory Dransfeldt 2024-05-17 13:39:15 -07:00
parent 42ea508d46
commit d680a11905
No known key found for this signature in database
4 changed files with 17 additions and 19 deletions

View file

@ -206,8 +206,9 @@ export default {
}
if (item.type === 'book') {
normalized['alt'] = `${item['title']} by ${item['authors']}`
normalized['subtext'] = `${item['percentage']} finished`
normalized['percentage'] = item['percentage']
normalized['title'] = `${item['title']} by ${item['authors']}`
normalized['rating'] = item['rating']
if (item['rating']) normalized['subtext'] = item['rating']
}
if (item.type === 'tv') {
normalized['title'] = item['title']