From 1fb2b35b75202e431ba8e06250570bba9d845094 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 11 Oct 2026 16:46:11 -0400 Subject: [PATCH] Fix inability to play first track in library --- src/pkjs/index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/pkjs/index.js b/src/pkjs/index.js index 0a3943d..8312e59 100644 --- a/src/pkjs/index.js +++ b/src/pkjs/index.js @@ -230,16 +230,11 @@ Pebble.addEventListener("appmessage", function (dict) { const subscope = payloadGet(dict.payload, "OUT_MENU_NAV_SUBSCOPE"); const seqId = payloadGet(dict.payload, "OUT_PLAY_SEQ_ID"); - if (seqId) { - console.log("SEQ ID RECEIVED"); - console.log("sessionId: " + jfSessionId); - console.log("seqId: " + seqId); - console.log("jfId: " + allJfIds[seqId]); - console.log("SEQ ID RECEIVED"); + if (seqId !== undefined) { callAPI("POST", cfg.PRIV_BASE_URL + "/Sessions/" + jfSessionId + "/Playing?playCommand=PlayNow&itemIds=" + allJfIds[seqId], null); } - if (scope) { + if (scope !== undefined) { let vanityList; let seqIdList = []; switch (scope) {