From 0035307762e462d9cdf34b762e20a2e74977e36e Mon Sep 17 00:00:00 2001 From: mio <10892119+biuuu@users.noreply.github.com> Date: Mon, 1 May 2023 16:36:43 +0800 Subject: [PATCH] fix: getLatestUrl does not get the last url when the timestamp is the same --- src/main/getData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/getData.js b/src/main/getData.js index e8bca93..c7281d8 100644 --- a/src/main/getData.js +++ b/src/main/getData.js @@ -90,7 +90,7 @@ const getLatestUrl = (list) => { const tsMch = list[i].match(/timestamp=(\d+)/) if (tsMch?.[1]) { const ts = parseInt(tsMch[1]) - if (time < parseInt(tsMch[1])) { + if (time <= parseInt(tsMch[1])) { time = ts result = list[i] }