Last.fm: pass track for app's name

This commit is contained in:
amsyarasyiq 2023-02-16 21:58:36 +08:00
parent 1226b6f4eb
commit 557e073a9c
2 changed files with 7 additions and 1 deletions

View file

@ -128,6 +128,12 @@ async function update() {
global.lastTrackUrl = lastTrack.url;
if (activity.name.includes("{{")) {
for (const key in lastTrack) {
activity.name = activity.name.replace(`{{${key}}}`, lastTrack[key]);
}
}
// Set timestamps
if (currentSettings.showTimestamp) {
activity.timestamps = {

View file

@ -9,6 +9,6 @@
],
"main": "src/index.ts",
"vendetta": {
"icon": "ic_checked"
"icon": "check"
}
}