From abb15b82e653f363179b3b0a325383fdc2331eb2 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 20 Sep 2018 10:24:27 -0500 Subject: [PATCH] Don't discard search results with no metadata --- src/invidious/helpers/helpers.cr | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index 8a2e5980..fa0d5de4 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -302,9 +302,6 @@ def extract_items(nodeset, ucid = nil) id = id.lchop("/watch?v=") metadata = node.xpath_nodes(%q(.//div[contains(@class,"yt-lockup-meta")]/ul/li)) - if metadata.empty? - next - end begin published = decode_date(metadata[0].content.lchop("Streamed ").lchop("Starts "))