From 30724b692412110201cf2e4c9c2cdb7830307e39 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 6 Aug 2018 23:11:37 -0500 Subject: [PATCH] Add fix for movies in search results --- src/invidious/search.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/invidious/search.cr b/src/invidious/search.cr index 259b3825..3d7c4ba4 100644 --- a/src/invidious/search.cr +++ b/src/invidious/search.cr @@ -52,6 +52,11 @@ def search(query, page = 1, search_params = build_search_params(content_type: "v if metadata.size == 0 next elsif metadata.size == 1 + # Skip movies + if metadata[0].content.includes? "ยท" + next + end + view_count = metadata[0].content.lchop("Streamed ").split(" ")[0].delete(",").to_i64 published = Time.now else