1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-22 07:37:29 +00:00

Fix format order from Invidious

This commit is contained in:
Cadence Ember 2021-01-14 22:48:25 +13:00
parent c83bdcb924
commit 52aa158613
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -30,7 +30,7 @@ function formatOrder(format) {
total += diff
if (i+1 < spec.length) { // not the last spec item?
const s2 = spec[i+1]
total *= s2.transform(s2.key)
total *= s2.transform(s2.max)
}
}
return -total