mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
fix search
Put search page in the super secret proto field
This commit is contained in:
parent
705e4fca06
commit
2600695927
3 changed files with 13 additions and 12 deletions
|
@ -65,15 +65,15 @@ describe "Helper" do
|
|||
|
||||
describe "#produce_search_params" do
|
||||
it "correctly produces token for searching with specified filters" do
|
||||
produce_search_params.should eq("CAASAhAB")
|
||||
produce_search_params.should eq("CAASAhABSAA%3D")
|
||||
|
||||
produce_search_params(sort: "upload_date", content_type: "video").should eq("CAISAhAB")
|
||||
produce_search_params(sort: "upload_date", content_type: "video").should eq("CAISAhABSAA%3D")
|
||||
|
||||
produce_search_params(content_type: "playlist").should eq("CAASAhAD")
|
||||
produce_search_params(content_type: "playlist").should eq("CAASAhADSAA%3D")
|
||||
|
||||
produce_search_params(sort: "date", content_type: "video", features: ["hd", "cc", "purchased", "hdr"]).should eq("CAISCxABIAEwAUgByAEB")
|
||||
produce_search_params(sort: "date", content_type: "video", features: ["hd", "cc", "purchased", "hdr"]).should eq("CAISCxABIAEwAUgByAEBSAA%3D")
|
||||
|
||||
produce_search_params(content_type: "channel").should eq("CAASAhAC")
|
||||
produce_search_params(content_type: "channel").should eq("CAASAhACSAA%3D")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue