aboutsummaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-10-15 03:50:35 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-10-15 03:50:35 +0300
commit5b906407d8c67d9e33224f61cbcf3853d903670b (patch)
tree9c00a06b32c94f868457d2f4446e89b4271e8957 /client/js
parent99aab1eb01ff50a8c296aca25da000d0923868a9 (diff)
downloadarching-kaos-radio-5b906407d8c67d9e33224f61cbcf3853d903670b.tar.gz
arching-kaos-radio-5b906407d8c67d9e33224f61cbcf3853d903670b.tar.bz2
arching-kaos-radio-5b906407d8c67d9e33224f61cbcf3853d903670b.zip
Possible fix
Diffstat (limited to 'client/js')
-rw-r--r--client/js/radio_emulator.js5
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;
}