GNOME Bugzilla – Bug 722820
Add Radio France source
Last modified: 2014-02-25 11:46:15 UTC
This would list the state-owned French radios, using: http://app2.radiofrance.fr/rfdirect/config/Radio.js as the list of radios. This second file will list local radios: http://app2.radiofrance.fr/rfdirect/config/FranceBleu.js
Created attachment 269089 [details] grl-franceinter.lua - I couldn't figure out how to use the json parser - All items seem to end up being "boxes" instead of audio and the mime type is ignored. - The source icon isn't actually set
Created attachment 269097 [details] grl-radiofrance.lua The "boxes" problem is solved, it's a bug in the lua-library code as mentioned in the review on the blocker. The source is also missing a way to set the supported-media.
Sorry about the 'boxes' bug, should be solved by now. I forgot to set supported-media. I'll do later this week. [Probably with others suggestions ?] A suggestion about the lua-source. I don't know if I've expressed myself well on IRC but, you can 'run' a string as lua code inside your source. e.g. change what is necessary in Radio.js to become a table-string and then run it to become a real table. function radiofrance_fetch_cb(feed) feed = feed:match("{.-(radio.+)}") feed = feed:gsub("'([%w_]+)'%s:", "%1 :") feed = feed:gsub("%s:", " =") load(feed)() print(radio.FranceInter.mp3_direct.hifi) end
Created attachment 269533 [details] grl-radiofrance.lua
Created attachment 270256 [details] [review] radiofrance: Add Radio France source
Attachment 270256 [details] pushed as 399ed9c - radiofrance: Add Radio France source