diff --git a/public/trending.js b/public/trending.js index 93af7a7..76e2374 100644 --- a/public/trending.js +++ b/public/trending.js @@ -404,7 +404,7 @@ document.addEventListener("DOMContentLoaded", () => { let finalChannelId = channelId; if (!channelId.startsWith("UC")) { - const url = `/api/channel/${channelId}`; + const url = `/api/channel/${channelId.replace("/channel/","")}`; console.log(`Resolving channel ID from: ${url}`); const idResponse = await fetch(url);