mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add errorcode for invalid video IDs
This commit is contained in:
parent
1e214aae7c
commit
9e73e3b153
1 changed files with 4 additions and 0 deletions
|
@ -633,6 +633,10 @@ def fetch_video(id, proxies, region)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if info["errorcode"]?.try &.== "2"
|
||||||
|
raise "Video unavailable."
|
||||||
|
end
|
||||||
|
|
||||||
title = info["title"]
|
title = info["title"]
|
||||||
author = info["author"]
|
author = info["author"]
|
||||||
ucid = info["ucid"]
|
ucid = info["ucid"]
|
||||||
|
|
Loading…
Reference in a new issue