From e3f0ae978358558aeb232cbaab2ea30fe98051cf Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 29 Mar 2024 15:07:58 -0700 Subject: [PATCH] chore: scrobbling --- api/scrobble.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/scrobble.js b/api/scrobble.js index 2437293b..7838eae7 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -116,6 +116,12 @@ export default async (request) => { await scrobbles.setJSON('now-playing', JSON.stringify(trackScrobbleData)) let scrobbleUpdate = scrobbleData let windowUpdate = windowData; + console.log('### SCROBBLE') + console.log(scrobbleUpdate) + console.log('### SCROBBLE') + console.log('### WINDOW') + console.log(windowUpdate) + console.log('### WINDOW') if (scrobbleUpdate['data']) scrobbleUpdate['data'].push(trackScrobbleData) if (!scrobbleUpdate['data']) scrobbleUpdate = { data: [trackScrobbleData] } if (windowData['data']) windowUpdate['data'].push(trackScrobbleData)