mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 00:57:59 +00:00
add try catch :p
This commit is contained in:
parent
c94078ec2f
commit
df7a02b9af
@ -43,6 +43,7 @@ module.exports = async function (video_id) {
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
// gets invidious instances
|
// gets invidious instances
|
||||||
let inv_url = "https://api.invidious.io/instances.json?sort_by=type,health";
|
let inv_url = "https://api.invidious.io/instances.json?sort_by=type,health";
|
||||||
|
|
||||||
@ -70,4 +71,7 @@ module.exports = async function (video_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
|
} catch {
|
||||||
|
return " "
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user