diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-20 10:24:27 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-20 10:24:27 -0500 |
| commit | abb15b82e653f363179b3b0a325383fdc2331eb2 (patch) | |
| tree | 72d82c7d7cba740210ce8bd21f9b0bb0c7584ce5 /src | |
| parent | 687013c1b9ba57ab0d094520a12b36f50ca6a56a (diff) | |
| download | invidious-abb15b82e653f363179b3b0a325383fdc2331eb2.tar.gz invidious-abb15b82e653f363179b3b0a325383fdc2331eb2.tar.bz2 invidious-abb15b82e653f363179b3b0a325383fdc2331eb2.zip | |
Don't discard search results with no metadata
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/helpers/helpers.cr | 3 |
1 files changed, 0 insertions, 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 ")) |
