add logs to scrobble events

This commit is contained in:
jeffvli
2025-11-28 13:25:55 -08:00
parent 7016446be7
commit 2f32534cf9
3 changed files with 189 additions and 92 deletions
+7
View File
@@ -45,5 +45,12 @@ export const logMsg = {
toggleRepeat: 'Toggle repeat',
toggleShuffle: 'Toggle shuffle',
},
[LogCategory.SCROBBLE]: {
scrobbledPause: 'Scrobbled a pause event',
scrobbledStart: 'Scrobbled a start event',
scrobbledSubmission: 'Scrobbled a submission event',
scrobbledTimeupdate: 'Scrobbled a timeupdate event',
scrobbledUnpause: 'Scrobbled an unpause event',
},
[LogCategory.SYSTEM]: {},
};
+1
View File
@@ -5,6 +5,7 @@ export enum LogCategory {
API = 'api',
OTHER = 'other',
PLAYER = 'player',
SCROBBLE = 'scrobble',
SYSTEM = 'system',
}