[drupal-devel] [feature] More flexible rss output

geeknews drupal-devel at drupal.org
Mon Jan 31 23:36:17 UTC 2005


 Project:      Drupal
 Version:      cvs
 Component:    node system
 Category:     feature requests
 Priority:     normal
 Assigned to:  walkah
 Reported by:  walkah
 Updated by:   geeknews
 Status:       patch

One thing to remember is the spec does not limit enclosures to one item
this has been discussed in detail by Dave Winer but it dows make sense
to only allow 1 enclosure per post. In addition what the folks at
Movable type did was put in a variable
If you look at 
http://www.geeknewscentral.com/podcast.xml (MP3)
http://www.geeknewscentral.com/wma.xml (wma)
http://www.geeknewscentral.com/ogg.xml (xml)
These are multiple RSS 2.0 files with the same exact information
included which allows podcasters the ability to publish multiple
formats and to create seperate rss feeds with the extension of file.
You shoud review what has been done at this site with the plugin they
developed It is worth a read and his implementation solved a great
number of issues that MT users were having.
http://brandon.fuller.name/archives/hacks/mtenclosures/
Being I am not a programmer and I do not fully know what this module
does then it should be smart enough so that when a post is created with
a hyperlink like http://www.geeknewscentral.com/podcast/anybsfile.mp3
that it reads that html automatically and creates the enclosure
information the RSS 2.0 specification is very specific what needs to be
included in that enclosure tag
With Podcatcher clients needing the URL, Length & Type 
If this module ties into the aggregator then it is important that the
aggreator parse this information completly so that those of us trying
to put sites together like we are at
http://www.techpodcasts.com/dp/?q=aggregator will be able to provide
custom XML feeds


geeknews



Previous comments:
------------------------------------------------------------------------

January 31, 2005 - 21:28 : walkah

Attachment: http://drupal.org/files/issues/format_rss_item.patch (4.06 KB)

this patch does a few things:
* alters format_rss_item (in common.inc) to allow the $args paramater
to be an array of arrays (optionally), so that extra arguments can have
attributes - i.e. think enclosures
* introduces a nodeapi option for 'rss item', so that other modules can
add additional info to each rss item
* patches taxonomy.module to add category information to feeds
* patches upload module to add enclosure for feeds (NOTE: rss only
allows 1 enclosure per item). this would allow things like, say,
podcasts to be available in drupal.


------------------------------------------------------------------------

January 31, 2005 - 22:39 : Dries

Some quick comments:

RSS allows you to specify multiple categories.  Why only emit one?
Isn't the author-field supposed to hold the author's e-mail address,
rather than the author's name?
Does it make sense to limit enclosures to files that have the
'List'-flag set?
As a user, I'd like to know (and have control over) what file will be
used for the enclosure.  How does other software deal with the fact
that you can have multiple files but only one enclosure?  Any
screenshots or GUI suggestions?  At a minimum, the implicit behavior
should be clearly documented so the user can upload his files in the
correct order (or something).
What is the rationale behind returning an associative array of arrays? 
Why not return an array of ready-to-use string? (eg. return
array('<category>my category<category>');)  Just thinking up loud.

I'd like to hear Neil's ideas on this.


-- 
View: http://drupal.org/node/16513
Edit: http://drupal.org/project/comments/add/16513





More information about the drupal-devel mailing list