fix listening
This commit is contained in:
parent
11ab56b9b3
commit
fca71334e9
1 changed files with 4 additions and 7 deletions
|
@ -258,18 +258,15 @@ function buildActivityHTML(activity) {
|
||||||
const activityTypeMap = {
|
const activityTypeMap = {
|
||||||
0: "Playing",
|
0: "Playing",
|
||||||
1: "Streaming",
|
1: "Streaming",
|
||||||
2: "Listening",
|
2: "Listening to",
|
||||||
3: "Watching",
|
3: "Watching",
|
||||||
4: "Custom Status",
|
4: "Custom Status",
|
||||||
5: "Competing",
|
5: "Competing",
|
||||||
};
|
};
|
||||||
|
|
||||||
const activityType =
|
const activityType = activityTypeMap[activity.type]
|
||||||
activity.name === "Spotify"
|
? `${activityTypeMap[activity.type]}${activity.type === 2 ? ` ${activity.name}` : ""}`
|
||||||
? "Listening to Spotify"
|
: "Playing";
|
||||||
: activity.name === "TIDAL"
|
|
||||||
? "Listening to TIDAL"
|
|
||||||
: activityTypeMap[activity.type] || "Playing";
|
|
||||||
|
|
||||||
const activityTimestamp =
|
const activityTimestamp =
|
||||||
start && progress === null
|
start && progress === null
|
||||||
|
|
Loading…
Add table
Reference in a new issue