Make use of Search::Query/Filters and associated HTML generator

This commit is contained in:
Samantaz Fox
2022-03-26 20:15:02 +01:00
parent a813955ad3
commit d93a7b315d
10 changed files with 87 additions and 331 deletions

View File

@@ -110,11 +110,10 @@ module Invidious::Search
case @type
when .regular?, .playlist?
all_items = search(@query, @filters, @page, @region)
items = unnest_items(all_items)
items = unnest_items(Processors.regular(self))
#
when .channel?
items = Processors.channel(@query, @page, @channel)
items = Processors.channel(self)
#
when .subscriptions?
if user