kopia lustrzana https://github.com/iv-org/invidious
Add minor convenience features to search
rodzic
cefb5d679f
commit
687013c1b9
|
@ -443,7 +443,7 @@ get "/search" do |env|
|
||||||
|
|
||||||
operators = query.split(" ").select { |a| a.match(/\w+:[\w,]+/) }
|
operators = query.split(" ").select { |a| a.match(/\w+:[\w,]+/) }
|
||||||
operators.each do |operator|
|
operators.each do |operator|
|
||||||
key, value = operator.split(":")
|
key, value = operator.downcase.split(":")
|
||||||
|
|
||||||
case key
|
case key
|
||||||
when "channel", "user"
|
when "channel", "user"
|
||||||
|
|
|
@ -169,7 +169,7 @@ def produce_search_params(sort : String = "relevance", date : String = "", conte
|
||||||
"\x30\x01"
|
"\x30\x01"
|
||||||
when "3d"
|
when "3d"
|
||||||
"\x38\x01"
|
"\x38\x01"
|
||||||
when "live"
|
when "live", "livestream"
|
||||||
"\x40\x01"
|
"\x40\x01"
|
||||||
when "purchased"
|
when "purchased"
|
||||||
"\x48\x01"
|
"\x48\x01"
|
||||||
|
|
Ładowanie…
Reference in New Issue