diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-10-15 03:50:35 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-10-15 03:50:35 +0300 |
commit | 5b906407d8c67d9e33224f61cbcf3853d903670b (patch) | |
tree | 9c00a06b32c94f868457d2f4446e89b4271e8957 /client/js/radio_emulator.js | |
parent | 99aab1eb01ff50a8c296aca25da000d0923868a9 (diff) | |
download | arching-kaos-radio-5b906407d8c67d9e33224f61cbcf3853d903670b.tar.gz arching-kaos-radio-5b906407d8c67d9e33224f61cbcf3853d903670b.tar.bz2 arching-kaos-radio-5b906407d8c67d9e33224f61cbcf3853d903670b.zip |
Possible fix
Diffstat (limited to 'client/js/radio_emulator.js')
-rw-r--r-- | client/js/radio_emulator.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/js/radio_emulator.js b/client/js/radio_emulator.js index 65a593b..a10f656 100644 --- a/client/js/radio_emulator.js +++ b/client/js/radio_emulator.js @@ -311,9 +311,8 @@ function listCallback(json, params) else if ( values.now_on_sequence > json.list[i].starts_on && values.now_on_sequence > json.list[i+1].starts_on ) { appendPreviouslyPlayedShows(json.list[i]); - ++i; - values.now_on_sequence = values.now_on_sequence - json.list[i].starts_on; - FetchJSON(`${jsonRequest}${json.list[i].hash}`, loadShowCallback, [json, values.now_on_sequence, json.list[i], hash_of_list]); + values.now_on_sequence = values.now_on_sequence - json.list[i+1].starts_on; + FetchJSON(`${jsonRequest}${json.list[i+1].hash}`, loadShowCallback, [json, values.now_on_sequence, json.list[i+1], hash_of_list]); debugLog('Second!'); break; } |