From dc42d5791996125d90f74992fbba8d6291cc5d81 Mon Sep 17 00:00:00 2001 From: Dima Date: Sun, 31 Dec 2023 12:09:44 +0400 Subject: [PATCH] fix musiconly --- frontend/static/js/random.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/static/js/random.js b/frontend/static/js/random.js index a201b4c..a664c64 100644 --- a/frontend/static/js/random.js +++ b/frontend/static/js/random.js @@ -118,6 +118,9 @@ document.getElementById("random").onclick = function() { if (viewsTo.includes("k")) { viewsTo = viewsTo.split("k")[0] * 1000 } + if (viewsTo == "∞") { + viewsTo = 'inf' + } let apiUrl = "/api/videos/random?" + `views=${viewsFrom}-${viewsTo}&years=${yearsRange[0]}-${yearsRange[1]}&horizonly=${horizonly}` if (musiconly) {