add try catch :p

This commit is contained in:
Ashley 2023-02-05 12:30:17 +00:00
parent c94078ec2f
commit df7a02b9af

View file

@ -43,6 +43,7 @@ module.exports = async function (video_id) {
return rv;
}
try {
// gets invidious instances
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;
} catch {
return " "
}
};