Support fancy blocked page with Invidious

This commit is contained in:
Cadence Ember 2021-01-14 22:48:45 +13:00
parent 52aa158613
commit 1d80e627af
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
1 changed files with 1 additions and 1 deletions

View File

@ -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)