feat: add reading progress display
This commit is contained in:
parent
3c54506ce8
commit
a4472722f6
6 changed files with 25 additions and 7 deletions
|
@ -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']}`
|
||||
|
|
Reference in a new issue