mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:58:25 +01:00
add try catch :p
This commit is contained in:
parent
c6dff86894
commit
0abca4f7c8
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