From 306a72dfe1fa0a09df51ac664792925c13abac29 Mon Sep 17 00:00:00 2001 From: localhost Date: Sun, 29 Oct 2023 13:20:22 +0100 Subject: [PATCH] fixing @ resoling --- utils/validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/validate.js b/utils/validate.js index f8edd8e..06cc0b9 100644 --- a/utils/validate.js +++ b/utils/validate.js @@ -43,8 +43,8 @@ async function validateChannelInput(input) { } if (input.includes('@')) { - const channelId = await (await fetch(`https://yt.jaybee.digital/api/channels?part=channels&handle=${id}`)).json() - return channelId['items'][0]['id'] + const channelId = await (await fetch(`https://pipedapi.kavin.rocks/@/${input.split('@')[1]}`)).json() + return channelId['id'] } else { return id }