mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix search filters
This commit is contained in:
parent
ed8ddbc07d
commit
917d220623
3 changed files with 6 additions and 6 deletions
|
@ -38,9 +38,9 @@ def build_search_params(sort : String = "relevance", date : String = "", content
|
|||
"\x00"
|
||||
when "rating"
|
||||
"\x01"
|
||||
when "upload_date"
|
||||
when "upload_date", "date"
|
||||
"\x02"
|
||||
when "view_count"
|
||||
when "view_count", "views"
|
||||
"\x03"
|
||||
else
|
||||
raise "No sort #{sort}"
|
||||
|
@ -92,7 +92,7 @@ def build_search_params(sort : String = "relevance", date : String = "", content
|
|||
"\x20\x01"
|
||||
when "subtitles"
|
||||
"\x28\x01"
|
||||
when "creative_commons"
|
||||
when "creative_commons", "cc"
|
||||
"\x30\x01"
|
||||
when "3d"
|
||||
"\x38\x01"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<% content_for "header" do %>
|
||||
<title><%= query.not_nil!.size > 30 ? query.not_nil![0,30].rstrip(".") + "..." : query.not_nil! %> - Invidious</title>
|
||||
<title><%= search_query.not_nil!.size > 30 ? query.not_nil![0,30].rstrip(".") + "..." : query.not_nil! %> - Invidious</title>
|
||||
<% end %>
|
||||
|
||||
<% videos.each_slice(4) do |slice| %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue