mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-14 20:46:24 +00:00
Add 404 status code on all possible endpoints
This commit is contained in:
@@ -1159,7 +1159,11 @@ def fetch_video(id, region)
|
||||
end
|
||||
|
||||
if reason = info["reason"]?
|
||||
raise InfoException.new(reason.as_s || "")
|
||||
if reason == "Video unavailable"
|
||||
raise NotFoundException.new(reason.as_s || "")
|
||||
else
|
||||
raise InfoException.new(reason.as_s || "")
|
||||
end
|
||||
end
|
||||
|
||||
video = Video.new({
|
||||
|
||||
Reference in New Issue
Block a user