Create a search processors module

This commit is contained in:
Samantaz Fox
2022-03-07 00:52:54 +01:00
parent f4e19ac05c
commit f9b8bc006f
4 changed files with 60 additions and 44 deletions

View File

@@ -262,7 +262,7 @@ module Invidious::Routes::API::V1::Channels
page = env.params.query["page"]?.try &.to_i?
page ||= 1
search_results = channel_search(query, page, ucid)
search_results = Invidious::Search::Processors.channel(query, page, ucid)
JSON.build do |json|
json.array do
search_results.each do |item|