chore: fix encoding
This commit is contained in:
parent
a4df253608
commit
a5aaf75aeb
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ module.exports = async function () {
|
||||||
const date = parseInt(chart['weeklyartistchart']['@attr']['to']) * 1000
|
const date = parseInt(chart['weeklyartistchart']['@attr']['to']) * 1000
|
||||||
let content = 'My top artists for the week: '
|
let content = 'My top artists for the week: '
|
||||||
artists.forEach((artist, index) => {
|
artists.forEach((artist, index) => {
|
||||||
const artistName = artist['name'].replace('&', '&');
|
const artistName = artist['name'].replace('&', 'and');
|
||||||
content += `${artistName} @ ${artist['playcount']} play${
|
content += `${artistName} @ ${artist['playcount']} play${
|
||||||
parseInt(artist['playcount']) > 1 ? 's' : ''
|
parseInt(artist['playcount']) > 1 ? 's' : ''
|
||||||
}`
|
}`
|
||||||
|
|
Reference in a new issue