From 3c226892c619914f2d6bf6ca8b43eda356dfd522 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 10 Jul 2019 10:44:44 -0500 Subject: [PATCH] Add fix for empty title tag when fetching videos --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index b54e65b8..b97c8f94 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1166,7 +1166,7 @@ def fetch_video(id, region) raise "Video unavailable." end - if !info["title"]? + if !info["title"]? || info["title"].empty? raise "Video unavailable." end