From 7951d4c8aa271d8123a2ab3b8aface9ebb2c6aa4 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 2 Jan 2019 14:20:57 -0600 Subject: [PATCH] Add length_seconds to subscription search --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 6688e4a0..58dcd81f 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -633,7 +633,7 @@ get "/search" do |env| count, videos = channel_search(search_query, page, channel) elsif subscriptions if view_name - videos = PG_DB.query_all("SELECT id,title,published,updated,ucid,author FROM ( + videos = PG_DB.query_all("SELECT id,title,published,updated,ucid,author,length_seconds FROM ( SELECT *, to_tsvector(#{view_name}.title) || to_tsvector(#{view_name}.author)