{"action":"created","issue":{"url":"https://api.github.com/repos/moneypenny/soma-chrome/issues/5","labels_url":"https://api.github.com/repos/moneypenny/soma-chrome/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/moneypenny/soma-chrome/issues/5/comments","events_url":"https://api.github.com/repos/moneypenny/soma-chrome/issues/5/events","html_url":"https://github.com/moneypenny/soma-chrome/issues/5","id":51206576,"number":5,"title":"Should grab current channels from SomaFM API","user":{"login":"rustyhodge","id":916586,"avatar_url":"https://avatars.githubusercontent.com/u/916586?v=3","gravatar_id":"","url":"https://api.github.com/users/rustyhodge","html_url":"https://github.com/rustyhodge","followers_url":"https://api.github.com/users/rustyhodge/followers","following_url":"https://api.github.com/users/rustyhodge/following{/other_user}","gists_url":"https://api.github.com/users/rustyhodge/gists{/gist_id}","starred_url":"https://api.github.com/users/rustyhodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustyhodge/subscriptions","organizations_url":"https://api.github.com/users/rustyhodge/orgs","repos_url":"https://api.github.com/users/rustyhodge/repos","events_url":"https://api.github.com/users/rustyhodge/events{/privacy}","received_events_url":"https://api.github.com/users/rustyhodge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moneypenny/soma-chrome/labels/blocked","name":"blocked","color":"DB3E88"},{"url":"https://api.github.com/repos/moneypenny/soma-chrome/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-12-07T04:06:34Z","updated_at":"2015-06-22T00:03:33Z","closed_at":null,"body":"The list of current channels should be grabbed from http://api.somafm.com/channels.xml so you don't have to worry about updating the source when a new channel is added. I looks like this:\r\n\r\n<channels>\r\n<channel id=\"groovesalad\">\r\n<title>\r\n<![CDATA[ Groove Salad ]]>\r\n</title>\r\n<description>\r\n<![CDATA[\r\nA nicely chilled plate of ambient/downtempo beats and grooves.\r\n]]>\r\n</description>\r\n<dj>\r\n<![CDATA[ Rusty Hodge ]]>\r\n</dj>\r\n<djmail>\r\n<![CDATA[ rusty@somafm.com ]]>\r\n</djmail>\r\n<genre>ambient|electronica</genre>\r\n<image>http://somafm.com/img/groovesalad120.png</image>\r\n<largeimage>http://somafm.com/logos/256/groovesalad256.png</largeimage>\r\n<xlimage>http://somafm.com/logos/512/groovesalad512.png</xlimage>\r\n<twitter>groovesalad</twitter>\r\n<updated>1417644939</updated>\r\n<fastpls format=\"mp3\">http://somafm.com/groovesalad.pls</fastpls>\r\n<slowpls format=\"mp3\">http://somafm.com/groovesalad56.pls</slowpls>\r\n<highestpls format=\"aac\">http://somafm.com/groovesalad130.pls</highestpls>\r\n<fastpls format=\"aacp\">http://somafm.com/groovesalad64.pls</fastpls>\r\n<slowpls format=\"aacp\">http://somafm.com/groovesalad32.pls</slowpls>\r\n<listeners>1716</listeners>\r\n<lastPlaying>\r\n<![CDATA[ Rachid Taha - Valencia ]]>\r\n</lastPlaying>\r\n</channel>"},"comment":{"url":"https://api.github.com/repos/moneypenny/soma-chrome/issues/comments/113970917","html_url":"https://github.com/moneypenny/soma-chrome/issues/5#issuecomment-113970917","issue_url":"https://api.github.com/repos/moneypenny/soma-chrome/issues/5","id":113970917,"user":{"login":"code-for-coffee","id":1757078,"avatar_url":"https://avatars.githubusercontent.com/u/1757078?v=3","gravatar_id":"","url":"https://api.github.com/users/code-for-coffee","html_url":"https://github.com/code-for-coffee","followers_url":"https://api.github.com/users/code-for-coffee/followers","following_url":"https://api.github.com/users/code-for-coffee/following{/other_user}","gists_url":"https://api.github.com/users/code-for-coffee/gists{/gist_id}","starred_url":"https://api.github.com/users/code-for-coffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-for-coffee/subscriptions","organizations_url":"https://api.github.com/users/code-for-coffee/orgs","repos_url":"https://api.github.com/users/code-for-coffee/repos","events_url":"https://api.github.com/users/code-for-coffee/events{/privacy}","received_events_url":"https://api.github.com/users/code-for-coffee/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T00:03:33Z","updated_at":"2015-06-22T00:03:33Z","body":"That could be; I am not sure and some Google/StackOverflow searching didn't yield much (to be fair I just browsed the first two pages of search results). Curl requests on my local machine and http://onlinecurl.com/ **do** work, though.\r\n\r\nHere's something you can use to test it using jQuery's `$.ajax`. You may need to open the developer console to see the specific CORS error if it exists. If you want to play around and setup another endpoint that doesn't serve a GZipped version I left you the ability to change the URL. http://jsfiddle.net/codeforcoffee/t911vapt/\r\n"}}