I am trying to move my web site over to ruby on rails, and am attempting to get 
the metadata for my station from liquidsoap flows.  Is there someone on here 
who who knows ruby on rails and would be willing to help me figure out why 
artist_name and song_title seem to be empty strings?
If so, I’d be very appreciative.  If this is not the correct place to ask this, 
I apologize.
Code follows.
Kind regards,
Ben

def get_meta_data
require 'httparty'
require 'json'

response = 
HTTParty.get('http://flows.liquidsoap.fm/radio?name=Blazing%20Star%20Radio&website=http://www.blazingstarradio.com/')
json = JSON.parse(response.body)
artist_name = json[:artist]
song_title = json[:title]
return "Currently playing: #{artist_name} - #{song_title}"
end
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to