Invidious is an alternative front-end to YouTube
Add fix for videos without metadata
Omar Rothbce01cba3265
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.crindex 8204fe11..7104e1e9 100644--- a/src/invidious/helpers/helpers.cr+++ b/src/invidious/helpers/helpers.cr@@ -328,7 +328,9 @@ def extract_videos(nodeset, ucid = nil)endmetadata = node.xpath_nodes(%q(.//div[contains(@class,"yt-lockup-meta")]/ul/li))- if metadata.size == 1+ if metadata.size == 0+ next+ elsif metadata.size == 1# Scheduled livestreamif metadata[0].content.starts_with? "Starts"view_count = 0_i64