1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-14 04:17:29 +00:00

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

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)