From f5e75d14f2684a98087b2d8a4faa48c177e92f61 Mon Sep 17 00:00:00 2001 From: vyneer Date: Fri, 27 Sep 2024 19:18:42 +0300 Subject: [PATCH] fix: kick vods not being accepted by the inputbox fixes #37 --- assets/js/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/util.js b/assets/js/util.js index 983719c..69a8061 100644 --- a/assets/js/util.js +++ b/assets/js/util.js @@ -216,8 +216,8 @@ function vodURL(url) { if (urlCheck.hostname === "www.kick.com" || urlCheck.hostname === "kick.com") { if (!platforms.includes("kick")) return; const videoCheck = urlCheck.pathname.split('/').filter(e => e.length); - if (videoCheck.length > 0 && videoCheck[0] === "video") { - window.location.href = window.location.origin + window.location.pathname + "?k=" + videoCheck[1] + timestamps; + if (videoCheck.length > 0 && videoCheck[1] === "videos") { + window.location.href = window.location.origin + window.location.pathname + "?k=" + videoCheck[2] + timestamps; } } } catch (e) {