From 95bfe7e54c1d35b99582efd09be962819585db77 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 6 Aug 2018 23:06:06 -0500 Subject: [PATCH] Add support for streamed videos in search results --- src/invidious/search.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/search.cr b/src/invidious/search.cr index e608eb83..259b3825 100644 --- a/src/invidious/search.cr +++ b/src/invidious/search.cr @@ -52,7 +52,7 @@ def search(query, page = 1, search_params = build_search_params(content_type: "v if metadata.size == 0 next elsif metadata.size == 1 - view_count = metadata[0].content.split(" ")[0].delete(",").to_i64 + view_count = metadata[0].content.lchop("Streamed ").split(" ")[0].delete(",").to_i64 published = Time.now else # Skip movies