{"action":"created","issue":{"url":"https://api.github.com/repos/bouil/twifip/issues/5","labels_url":"https://api.github.com/repos/bouil/twifip/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bouil/twifip/issues/5/comments","events_url":"https://api.github.com/repos/bouil/twifip/issues/5/events","html_url":"https://github.com/bouil/twifip/issues/5","id":59723429,"number":5,"title":"Cleaner titles","user":{"login":"Westie","id":117472,"avatar_url":"https://avatars.githubusercontent.com/u/117472?v=3","gravatar_id":"","url":"https://api.github.com/users/Westie","html_url":"https://github.com/Westie","followers_url":"https://api.github.com/users/Westie/followers","following_url":"https://api.github.com/users/Westie/following{/other_user}","gists_url":"https://api.github.com/users/Westie/gists{/gist_id}","starred_url":"https://api.github.com/users/Westie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Westie/subscriptions","organizations_url":"https://api.github.com/users/Westie/orgs","repos_url":"https://api.github.com/users/Westie/repos","events_url":"https://api.github.com/users/Westie/events{/privacy}","received_events_url":"https://api.github.com/users/Westie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-03T23:14:31Z","updated_at":"2015-03-04T09:11:19Z","closed_at":null,"body":"At the moment, the feed from FIP is not sanitised, which doesn't really help much - especially when the MP3 stream doesn't have metadata on it. As a new FIP fan, I've spent tonight creating a script that does its best to analyse the song, and returns the song details from iTunes, as demonstrated here:\r\n\r\n`http://api.typefish.co.uk/fip-radio/current`\r\n\r\n\t{\r\n\t\terror: false,\r\n\t\tresponse: {\r\n\t\t\tid: 427830273,\r\n\t\t\talbum: \"Sound Trax\",\r\n\t\t\tartist: \"Le Sacre du Tympan\",\r\n\t\t\ttitle: \"Ti seppellirei nel giardino\",\r\n\t\t\tmeta: {\r\n\t\t\t\tstartTime: \"2015-03-03T23:07:23+00:00\",\r\n\t\t\t\tendTime: \"2015-03-03T23:10:40+00:00\"\r\n\t\t\t},\r\n\t\t\tsrc: \"https://itunes.apple.com/lookup?id=427830273&entity=song\"\r\n\t\t}\r\n\t}\r\n\r\nThere's also `/fip-radio/playlist` which basically cleans up the normal feed.\r\n\r\nThe ID in this case is the ID of the track from iTunes - and if there is a iTunes API URL it will provide it too. If you want, I can provide the source in a gist or something?\r\n\r\nOh, and I haven't tested it with the new yet - just got to wait until whatever time it is until 'FIP ACTUALITIE' or whatever 'News' is in French appears in the feed.\r\n\r\nPS: I'm currently using this to populate metadata on a relay of FIP!"},"comment":{"url":"https://api.github.com/repos/bouil/twifip/issues/comments/77120874","html_url":"https://github.com/bouil/twifip/issues/5#issuecomment-77120874","issue_url":"https://api.github.com/repos/bouil/twifip/issues/5","id":77120874,"user":{"login":"Westie","id":117472,"avatar_url":"https://avatars.githubusercontent.com/u/117472?v=3","gravatar_id":"","url":"https://api.github.com/users/Westie","html_url":"https://github.com/Westie","followers_url":"https://api.github.com/users/Westie/followers","following_url":"https://api.github.com/users/Westie/following{/other_user}","gists_url":"https://api.github.com/users/Westie/gists{/gist_id}","starred_url":"https://api.github.com/users/Westie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Westie/subscriptions","organizations_url":"https://api.github.com/users/Westie/orgs","repos_url":"https://api.github.com/users/Westie/repos","events_url":"https://api.github.com/users/Westie/events{/privacy}","received_events_url":"https://api.github.com/users/Westie/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T09:11:19Z","updated_at":"2015-03-04T09:11:19Z","body":"http://ss.westie.sh/liRI/php\r\n\r\nThere you go, have a butchers with that. What it does is this:\r\n\r\n- Scans the feed for iTunes object IDs\r\n- Searches for them in the global and French marketplaces\r\n\r\nand failing that, searches again, with *some* text fixes, and failing that, it just makes everything look that bit better.\r\n\r\nFeel free to either use my endpoint (I'm currently pinging it every second because I'm lazy however the actual endpoint is cached) or modify/port."}}