fix: getLatestUrl does not get the last url when the timestamp is the same

This commit is contained in:
mio 2023-05-01 16:36:43 +08:00
parent a1257bdbfb
commit 0035307762

@ -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]
}