"Per Wigren" <[EMAIL PROTECTED]> writes: > > If the spraydio-module needs to parse a html-page, > > I think the url should be included in the xml to > > make it easier/possible to generalize the modules. > > Yes, the spraydio-module will parse html-pages, but > I think we should put the least needed information > in the XML-file and let the module create the URL from > that so we don't have to change 15 entries in the XML > if spraydio changes the path or hostname.
Changing x entries isn't that hard with regexps :-) OTOH, I don't know if including the whole URL makes the module more generic. I think I agree with you. > I think <genres><genre></genre></genres> is a bit too > verbose since most stations won't use more than maybe > three genres anyway.. Same thing with <lang></lang>. Agree. > <streams> make sense though, because we may want an > easy way to access all streams.. > > How about this? : > > > <station name="�berkewl st4t10n" type="music"> > <!-- The module gothicradio parses stations at gothicradio.net which is a totally > made up site :) --> > <module name="gothicradio"> > <!-- �berkewl st3t10n has ID 42 at gothicradio.net --> > <param name="id">42</param> > </module> > <info> > <genre>Punk</genre> > <genre>Industrial</genre> > <genre>Country</genre> > <lang>jp</lang> > <desc lang="fi">yksi kaksi kolme</desc> > </info> Agree! > <streams> > <stream codec="WMA" kbps="96" br="41000" ch="2"> > <asx href="http://server/file.asx"/> > <asx href="http://otherserver/file.asx"> > <!-- Optional extra stuff to asx: --> > <exclude>.*/splash\.(asf|wmv)</exclude> > </asx> > <media href="mms://127.0.0.1:666/stream.wma"/> > <media href="mms://192.168.0.1:25/stream.wma"> > <!-- Try to seek 123 seconds to skip annoying jingle --> > <seek>123</seek> > </media> I'm having second thought about using media, asx etc. It makes the DTD more complicated than necessary... > </stream> > </streams> > </station> > > > I think the format should be as generic as possible, > kind of a XMLTV for webradio that can be used for other > projects also.. Agree > Maybe we can use a directory with several .xml-files and Freevo's > autogen.sh just concatenates them inside a > <freevo><webradio></webradio></freevo> to a .fxd-file :) That would > also make it much more maintainable.. Sounds like a good idea. -- Eirik Meland ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
