Skip to content

Commit

Permalink
fix: kick vods not being accepted by the inputbox
Browse files Browse the repository at this point in the history
fixes #37
  • Loading branch information
vyneer committed Sep 27, 2024
1 parent 7eeb857 commit f5e75d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f5e75d1

Please sign in to comment.