|
|
@ -903,6 +903,7 @@ get "/search" do |env|
|
|
|
|
count, videos = search(search_query, page, search_params, region).as(Tuple)
|
|
|
|
count, videos = search(search_query, page, search_params, region).as(Tuple)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env.set "search", query
|
|
|
|
templated "search"
|
|
|
|
templated "search"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -3070,6 +3071,7 @@ get "/channel/:ucid/playlists" do |env|
|
|
|
|
items = items.map { |item| item.as(SearchPlaylist) }
|
|
|
|
items = items.map { |item| item.as(SearchPlaylist) }
|
|
|
|
items.each { |item| item.author = "" }
|
|
|
|
items.each { |item| item.author = "" }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env.set "search", "channel:#{channel.ucid} "
|
|
|
|
templated "playlists"
|
|
|
|
templated "playlists"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -3110,6 +3112,7 @@ get "/channel/:ucid/community" do |env|
|
|
|
|
error_message = ex.message
|
|
|
|
error_message = ex.message
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env.set "search", "channel:#{channel.ucid} "
|
|
|
|
templated "community"
|
|
|
|
templated "community"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|