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) { async function getChannel(channelHandle) {
let channel;
const path = `api/channel/search/?q=${channelHandle}`; const path = `api/channel/search/?q=${channelHandle}`;
try { try {
channel = await sendGet(path); return await sendGet(path);
return channel.data;
} catch { } catch {
return false; return false;
} }