Skip to content

Commit

Permalink
fix: artistName not transforming
Browse files Browse the repository at this point in the history
  • Loading branch information
Buzzertech committed Jun 21, 2019
1 parent e6bf223 commit 97751ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
dist
assets
.vscode
yarn-error.log
yarn-error.log
.DS_STORE
12 changes: 3 additions & 9 deletions src/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ export const prepareSvg = (
<image href="${bgUrl}" x="0" y="0" width="100%" height="100%" />
<rect x="0" y="40%" width="100%" height="60%" fill="url(#bottomGrad)"/>
<text x="${textX}" style="font-family: 'Poppins', arial; font-weight: bold; font-size: 5em;" y="90%" fill="white">${songName.toUpperCase()}</text>
<text x="${textX}" style="font-family: 'Poppins', arial; font-size: 3em; font-weight: 300;" y="95%" fill="white">${
artistName.toUpperCase
}</text>
<text x="${textX}" style="font-family: 'Poppins', arial; font-size: 3em; font-weight: 300;" y="95%" fill="white">${artistName.toUpperCase()}</text>
</svg>
`;
};
Expand Down Expand Up @@ -130,19 +128,15 @@ const getDescription = (
imageData: IUnsplashResponse
) => `${songTitle}
⭐️ DatSongBot brings you another fresh, new music by ${
song.user.username
} for you to enjoy!
⭐️ DatSongBot brings you another fresh, new music by ${song.user.username} for you to enjoy!
Listen to this song on Soundcloud:
▶️${song.permalink_url}
Follow ${song.user.username} on Soundcloud:
🔉${song.user.permalink_url}
The background image used in this video is provided by ${
imageData.user.name
} from Unsplash:
The background image used in this video is provided by ${imageData.user.name} from Unsplash:
🔗Follow ${imageData.user.name} on Unsplash - ${imageData.user.links.html}
📂Download this background - ${imageData.links.html}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"include": ["src", "types"],
"compilerOptions": {
"target": "es5",
"target": "es2015",
"module": "esnext",
"lib": ["dom", "esnext"],
"importHelpers": true,
Expand Down

0 comments on commit 97751ef

Please sign in to comment.