fix channel name lookup

This commit is contained in:
Simon 2025-03-09 21:58:28 +07:00
parent c867da85f5
commit 5f53ae52d6
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -144,11 +144,9 @@ async function videoExists(id) {
}
async function getChannel(channelHandle) {
let channel;
const path = `api/channel/search/?q=${channelHandle}`;
try {
channel = await sendGet(path);
return channel.data;
return await sendGet(path);
} catch {
return false;
}