Last.fm: pass track for app's name
This commit is contained in:
parent
1226b6f4eb
commit
557e073a9c
2 changed files with 7 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
],
|
||||
"main": "src/index.ts",
|
||||
"vendetta": {
|
||||
"icon": "ic_checked"
|
||||
"icon": "check"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue