mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-14 04:42:56 -04:00
Merge ab862e0d507e65367840075c098a09f7c6f74161 into 0c07e9d27ac773d8423143c11bbcd36eaae0f8e4
This commit is contained in:
commit
304677d87d
@ -501,5 +501,6 @@
|
||||
"toggle_theme": "Toggle Theme",
|
||||
"carousel_slide": "Slide {{current}} of {{total}}",
|
||||
"carousel_skip": "Skip the Carousel",
|
||||
"carousel_go_to": "Go to slide `x`"
|
||||
"carousel_go_to": "Go to slide `x`",
|
||||
"dmca_content": "Sorry, this video cannot be played on this instance due to a DMCA/copyright infringement letter sent to the instance administrator."
|
||||
}
|
||||
|
@ -30,6 +30,10 @@ module Invidious::Routes::Watch
|
||||
return env.redirect "/"
|
||||
end
|
||||
|
||||
if CONFIG.dmca_content.includes?(id)
|
||||
return error_template(403, "dmca_content")
|
||||
end
|
||||
|
||||
plid = env.params.query["list"]?.try &.gsub(/[^a-zA-Z0-9_-]/, "")
|
||||
continuation = process_continuation(env.params.query, plid, id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user