feat: data storage
This commit is contained in:
parent
bcc6ea0987
commit
d8137dca96
29 changed files with 428 additions and 14449 deletions
|
@ -182,12 +182,12 @@ export default {
|
|||
url: item['url'],
|
||||
type: item.type
|
||||
}
|
||||
if (item.type === 'album') {
|
||||
if (item.type === 'albums') {
|
||||
normalized['title'] = item['title']
|
||||
normalized['alt'] = `${item['title']} by ${item['artist']}`
|
||||
normalized['subtext'] = `${item['artist']}`
|
||||
}
|
||||
if (item.type === 'artist') {
|
||||
if (item.type === 'artists') {
|
||||
normalized['title'] = item['title']
|
||||
normalized['alt'] = `${item['plays']} plays of ${item['title']}`
|
||||
normalized['subtext'] = `${item['plays']} plays`
|
||||
|
|
Reference in a new issue