Closed janboddez closed 2 years ago
Had something similar happen just now.
[01-Jul-2022 17:11:36 UTC] [Scrobbble] Got request: {"s":"dc6ca335de1a38cbe30cf8efbaa0e9f8","a":["Creedence Clearwater Revival","Creedence Clearwater Revival"],"b":["Green River","Green River"],"t":["Bad Moon Rising (live)","Bad Moon Rising (live)"],"n":["12","12"],"l":["128","128"],"m":["ca181481-c504-442b-b341-21f9d12e3f20 ","ca181481-c504-442b-b341-21f9d12e3f20 "],"i":["1651907994","1656695403"],"o":["P","P"],"r":["",""]}
Looks like the player sends two scrobbles (a recent one, and one from a long time ago that apparently never made it) and we exit after the first one ('cause I wasn't expecting this to happen).
I.e., the die("OK\n")
at https://github.com/janboddez/scrobbble/blob/e17af31aa3009225c30fa08881c83bfc1de53cb7/includes/class-scrobbble-api.php#L226 should be moved outside the for
loop.
Looks like its the player (or plugin), or something else entirely, but maybe a debugging mode is in order?