kopia lustrzana https://github.com/iv-org/invidious
Add errorcode for invalid video IDs
rodzic
1e214aae7c
commit
9e73e3b153
|
@ -633,6 +633,10 @@ def fetch_video(id, proxies, region)
|
|||
end
|
||||
end
|
||||
|
||||
if info["errorcode"]?.try &.== "2"
|
||||
raise "Video unavailable."
|
||||
end
|
||||
|
||||
title = info["title"]
|
||||
author = info["author"]
|
||||
ucid = info["ucid"]
|
||||
|
|
Ładowanie…
Reference in New Issue