From 52aa1586136db82d73fc0b852fb8de18df345b68 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 14 Jan 2021 22:48:25 +1300 Subject: [PATCH] Fix format order from Invidious --- api/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/video.js b/api/video.js index c8b0ad6..07f227b 100644 --- a/api/video.js +++ b/api/video.js @@ -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