From 3e5fbc779b30607d3eedb8fdbd7ddbee9f65bcf0 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 15 Oct 2024 04:05:12 +0300 Subject: Possible fix --- client/js/radio_emulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/js/radio_emulator.js b/client/js/radio_emulator.js index 12e6c67..9ea8324 100644 --- a/client/js/radio_emulator.js +++ b/client/js/radio_emulator.js @@ -305,7 +305,7 @@ function listCallback(json, params) debugLog('First!'); break; } - else if ( values.now_on_sequence > json.list[i].starts_on && values.now_on_sequence > json.list[i].starts_on) + else if ( values.now_on_sequence > json.list[i].starts_on && i === json.list.length - 1 ) { 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]); -- cgit v1.2.3