mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-16 10:18:28 +00:00
bilibili: follow b23
case with a break;
- oops
This commit is contained in:
parent
c2470eaa19
commit
5ae1cefa11
@ -39,6 +39,7 @@ export async function getJSON(originalURL, lang, obj) {
|
|||||||
|
|
||||||
host = "bilibili";
|
host = "bilibili";
|
||||||
url = await fetch(`https://b23.tv/${shortUrlId}`).then(res => res.url);
|
url = await fetch(`https://b23.tv/${shortUrlId}`).then(res => res.url);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (!(host && host.length < 20 && host in patterns && patterns[host]["enabled"])) return apiJSON(0, { t: errorUnsupported(lang) });
|
if (!(host && host.length < 20 && host in patterns && patterns[host]["enabled"])) return apiJSON(0, { t: errorUnsupported(lang) });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user