1
0
Fork 0

Opensearch works again

This commit is contained in:
magnolia-fan 2011-11-30 12:54:40 +04:00
parent 8a188cf6bd
commit f76dea062c
3 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,10 @@ class ArtistController < ApplicationController
)
end
def search
redirect_to "/#/artist/#{params[:q].gsub(/\s/, '+')}"
end
private
def queue_loading artist_name, mbid

View File

@ -21,4 +21,6 @@ Beathaven::Application.routes.draw do
match 'artist/autocomplete' => 'last_fm#autocomplete'
match 'artist/(:artist)' => 'artist#data', constraints: { artist: /.*/ }
match 'search' => 'artist#search'
end

View File

@ -3,5 +3,5 @@
<ShortName>BeatHaven</ShortName>
<Description>BeatHaven</Description>
<Image height="16" width="16" type="image/x-icon">http://beathaven.org/favicon.ico</Image>
<Url type="text/html" method="get" template="http://beathaven.org/artist/#/{searchTerms}/"/>
<Url type="text/html" method="get" template="http://beathaven.org/search/?q={searchTerms}"/>
</OpenSearchDescription>