From 1d80e627af3a58518f3a340a5397d0020bcf1146 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 14 Jan 2021 22:48:45 +1300 Subject: [PATCH] Support fancy blocked page with Invidious --- api/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/video.js b/api/video.js index 07f227b..b27360e 100644 --- a/api/video.js +++ b/api/video.js @@ -74,7 +74,7 @@ p The selected instance, #[code= instanceOrigin], did not respond correctly. ` message = pug.render(template, {instanceOrigin}) } else if (e instanceof InstanceError) { - if (e.identifier === "RATE_LIMITED_BY_YOUTUBE") { + if (e.identifier === "RATE_LIMITED_BY_YOUTUBE" || e.message === "Could not extract video info. Instance is likely blocked.") { const template = ` .blocked-explanation img(src="/static/images/instance-blocked.svg" width=552 height=96)