mirror of
https://git.wetfence.xyz/RandyTheSilly/jellyPod.git
synced 2026-10-26 23:39:56 -04:00
Fix inability to play first track in library
This commit is contained in:
1 parent
9798dcb08e
commit
1fb2b35b75
1 file changed
+2
-7
+2
-7
@@ -230,16 +230,11 @@ Pebble.addEventListener("appmessage", function (dict) {
|
|||||||
const subscope = payloadGet(dict.payload, "OUT_MENU_NAV_SUBSCOPE");
|
const subscope = payloadGet(dict.payload, "OUT_MENU_NAV_SUBSCOPE");
|
||||||
const seqId = payloadGet(dict.payload, "OUT_PLAY_SEQ_ID");
|
const seqId = payloadGet(dict.payload, "OUT_PLAY_SEQ_ID");
|
||||||
|
|
||||||
if (seqId) {
|
if (seqId !== undefined) {
|
||||||
console.log("SEQ ID RECEIVED");
|
|
||||||
console.log("sessionId: " + jfSessionId);
|
|
||||||
console.log("seqId: " + seqId);
|
|
||||||
console.log("jfId: " + allJfIds[seqId]);
|
|
||||||
console.log("SEQ ID RECEIVED");
|
|
||||||
callAPI("POST", cfg.PRIV_BASE_URL + "/Sessions/" + jfSessionId + "/Playing?playCommand=PlayNow&itemIds=" + allJfIds[seqId], null);
|
callAPI("POST", cfg.PRIV_BASE_URL + "/Sessions/" + jfSessionId + "/Playing?playCommand=PlayNow&itemIds=" + allJfIds[seqId], null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scope) {
|
if (scope !== undefined) {
|
||||||
let vanityList;
|
let vanityList;
|
||||||
let seqIdList = [];
|
let seqIdList = [];
|
||||||
switch (scope) {
|
switch (scope) {
|
||||||
|
|||||||
Reference in new issue
Block a user