mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix error message for invalid video ID
This commit is contained in:
parent
1079c4516c
commit
90b5479735
1 changed files with 4 additions and 0 deletions
|
@ -701,6 +701,10 @@ def fetch_video(id, proxies, region)
|
||||||
raise "Video unavailable."
|
raise "Video unavailable."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if !info["title"]?
|
||||||
|
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