Skip to content

Invidious is an alternative front-end to YouTube

Add fix for empty title tag when fetching videos

Omar Roth3c226892c619
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