feat: add reading progress display

This commit is contained in:
Cory Dransfeldt 2023-10-29 09:51:33 -07:00
parent 3c54506ce8
commit a4472722f6
6 changed files with 25 additions and 7 deletions

View file

@ -16,7 +16,11 @@ module.exports = {
normalized['subtext'] = `#${item['rank']}`
}
if (item.type === 'movie') normalized['alt'] = item['title']
if (item.type === 'book') normalized['alt'] = `${item['title']} by ${item['author']}`
if (item.type === 'book') {
normalized['alt'] = `${item['title']} by ${item['author']}`
normalized['subtext'] = `${item['percentage']} finished`
normalized['percentage'] = item['percentage']
}
if (item.type === 'tv') {
normalized['title'] = item['title']
normalized['alt'] = `${item['title']} from ${item['name']}`