Update public/trending.js

This commit is contained in:
obvtiger 2025-08-07 08:46:40 +02:00
parent 738a6a2cce
commit 8c2e1bd15b

View file

@ -404,7 +404,7 @@ document.addEventListener("DOMContentLoaded", () => {
let finalChannelId = channelId; let finalChannelId = channelId;
if (!channelId.startsWith("UC")) { if (!channelId.startsWith("UC")) {
const url = `/api/channel/${channelId}`; const url = `/api/channel/${channelId.replace("/channel/","")}`;
console.log(`Resolving channel ID from: ${url}`); console.log(`Resolving channel ID from: ${url}`);
const idResponse = await fetch(url); const idResponse = await fetch(url);