Radio
Logging things done in Radio, or information on what to do



Categories:
LiveJournal
Radio


Subscribe to "Radio" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Permanent link: Friday, March 05, 2004 Friday, March 05, 2004
 

Content:encoded makes me sad


People that include the full text in their RSS 2.0 feed instead of just an automatically truncated "excerptoid" make me happy. However, including the full text in a while still keeping the exceptoid in the makes me sad. I'm not even sure what the motivation is to having , since as far as I know you can put that sort of thing in an RSS 2.0 just fine.

So, I finally got around to doing something about it.



In Radio, I've gone into xml.rss.compileService and added this bundle:



bundle { //use content:encoded if possible
    try{contentEncoded=xml.getAddress(item,"encoded")};
    if defined(contentEncoded) {
        cdata=decode(contentEncoded^.["/cdata"]);
        if sizeOf(cdata)>sizeOf(description) {
            description=cdata}}}

I'm sure this is a completely unsafe way of grabbing a out of the xmlstruct, but hey... it works so far!


8:56:36 PM  Permanent link   Categories: Radio


Click here to visit the Radio UserLand website. © Copyright 2004 Matthew Ernest.
Last update: 3/27/2004; 2:01:43 PM. hT
This theme is based on the SoundWaves (blue) Manila theme.
March 2004
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Aug   Apr


[Macro error: Can't find a sub-table named "compilation".]