going back to jaybee, piped sucks

This commit is contained in:
localhost 2023-11-26 11:16:49 +01:00
parent 306a72dfe1
commit f2a30d7eec
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ async function validateChannelInput(input) {
}
if (input.includes('@')) {
const channelId = await (await fetch(`https://pipedapi.kavin.rocks/@/${input.split('@')[1]}`)).json()
return channelId['id']
const channelId = await (await fetch(`https://yt.jaybee.digital/api/channels?part=channels&handle=${id}`)).json()
return channelId['items'][0]['id']
} else {
return id
}