summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-01-02 14:20:57 -0600
committerOmar Roth <omarroth@hotmail.com>2019-01-02 19:28:59 -0600
commit7951d4c8aa271d8123a2ab3b8aface9ebb2c6aa4 (patch)
treea8434087993e210f34c48bb4bfc045acdd6eb873
parenta02b53936283cb2d50be23f62fbf2a41949eec78 (diff)
downloadinvidious-7951d4c8aa271d8123a2ab3b8aface9ebb2c6aa4.tar.gz
invidious-7951d4c8aa271d8123a2ab3b8aface9ebb2c6aa4.tar.bz2
invidious-7951d4c8aa271d8123a2ab3b8aface9ebb2c6aa4.zip
Add length_seconds to subscription search
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
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)