mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-16 23:14:39 -05:00
add try catch :p
This commit is contained in:
parent
c94078ec2f
commit
df7a02b9af
1 changed files with 4 additions and 0 deletions
|
@ -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 " "
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue