mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-02 15:54:54 +00:00
all: add space after catch
This commit is contained in:
parent
4c006b2291
commit
f7dc6cebad
4 changed files with 7 additions and 7 deletions
|
|
@ -124,7 +124,7 @@ export default async function(o) {
|
|||
dispatcher: o.dispatcher
|
||||
})
|
||||
);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
if (e.message?.endsWith("decipher algorithm")) {
|
||||
return { error: "youtube.decipher" }
|
||||
} else if (e.message?.includes("refresh access token")) {
|
||||
|
|
@ -142,7 +142,7 @@ export default async function(o) {
|
|||
let info;
|
||||
try {
|
||||
info = await yt.getBasicInfo(o.id, useHLS ? 'IOS' : 'ANDROID');
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
if (e?.info?.reason === "This video is private") {
|
||||
return { error: "content.video.private" };
|
||||
} else if (e?.message === "This video is unavailable") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue