From 90b5479735cef727da5e831a8019689648f76777 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 22 Mar 2019 22:17:39 -0500 Subject: [PATCH] Fix error message for invalid video ID --- src/invidious/videos.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index f89dabd7..3e53ae7c 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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"]