Skip to content

Commit 97751ef

Browse files
committed
fix: artistName not transforming
1 parent e6bf223 commit 97751ef

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules
33
dist
44
assets
55
.vscode
6-
yarn-error.log
6+
yarn-error.log
7+
.DS_STORE

src/video.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ export const prepareSvg = (
6060
<image href="${bgUrl}" x="0" y="0" width="100%" height="100%" />
6161
<rect x="0" y="40%" width="100%" height="60%" fill="url(#bottomGrad)"/>
6262
<text x="${textX}" style="font-family: 'Poppins', arial; font-weight: bold; font-size: 5em;" y="90%" fill="white">${songName.toUpperCase()}</text>
63-
<text x="${textX}" style="font-family: 'Poppins', arial; font-size: 3em; font-weight: 300;" y="95%" fill="white">${
64-
artistName.toUpperCase
65-
}</text>
63+
<text x="${textX}" style="font-family: 'Poppins', arial; font-size: 3em; font-weight: 300;" y="95%" fill="white">${artistName.toUpperCase()}</text>
6664
</svg>
6765
`;
6866
};
@@ -130,19 +128,15 @@ const getDescription = (
130128
imageData: IUnsplashResponse
131129
) => `${songTitle}
132130
133-
⭐️ DatSongBot brings you another fresh, new music by ${
134-
song.user.username
135-
} for you to enjoy!
131+
⭐️ DatSongBot brings you another fresh, new music by ${song.user.username} for you to enjoy!
136132
137133
Listen to this song on Soundcloud:
138134
▶️${song.permalink_url}
139135
140136
Follow ${song.user.username} on Soundcloud:
141137
🔉${song.user.permalink_url}
142138
143-
The background image used in this video is provided by ${
144-
imageData.user.name
145-
} from Unsplash:
139+
The background image used in this video is provided by ${imageData.user.name} from Unsplash:
146140
🔗Follow ${imageData.user.name} on Unsplash - ${imageData.user.links.html}
147141
📂Download this background - ${imageData.links.html}
148142

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"include": ["src", "types"],
33
"compilerOptions": {
4-
"target": "es5",
4+
"target": "es2015",
55
"module": "esnext",
66
"lib": ["dom", "esnext"],
77
"importHelpers": true,

0 commit comments

Comments
 (0)