mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-17 14:06:14 +00:00
Merge pull request #3124 from iv-org/add-404-status-code
This commit is contained in:
@@ -1158,7 +1158,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