mirror of
https://github.com/iv-org/invidious
synced 2024-11-10 13:13:33 +01:00
Fix error message for invalid video ID
This commit is contained in:
parent
1079c4516c
commit
90b5479735
@ -701,6 +701,10 @@ def fetch_video(id, proxies, region)
|
||||
raise "Video unavailable."
|
||||
end
|
||||
|
||||
if !info["title"]?
|
||||
raise "Video unavailable."
|
||||
end
|
||||
|
||||
title = info["title"]
|
||||
author = info["author"]
|
||||
ucid = info["ucid"]
|
||||
|
Loading…
Reference in New Issue
Block a user