fix listening

This commit is contained in:
creations 2025-05-14 10:35:46 -04:00
parent 11ab56b9b3
commit fca71334e9
Signed by: creations
GPG key ID: 8F553AA4320FC711

View file

@ -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