Menu

#22 Import enclosure tag into MagpieRSS

open
nobody
None
5
2014-09-25
2006-04-14
CJ
No

RSS feeds can apparently provide an <enclosure> tag to
add attachments to their feed. This seems to be common
on Podcast feeds, specifically. The tag looks like so:

<enclosure type="audio/mpeg"
url="http://www.tmbg.com/_media/_pod/TMBGPodcast6A.mp3"/>

(that's taken from
http://www.tmbg.com/_media/_pod/podcast.xml )

It'd be great if MagpieRSS would provide this info as
well. Thanks!

-CJ

Discussion

  • CJ

    CJ - 2006-04-14

    Logged In: YES
    user_id=269157

    I sent this to the ML already, but a brief summary: the
    basic reason why it's not grabbing this information already
    is that MagpieRSS only processes tag attributes that it's
    been specifically coded to understand. IMO it makes sense
    to provide the attributes somewhere in the item array.
    Here's a patch which creates an "_attrs" entry - I don't
    know if that's where it should go, but it's just an example
    of what I'm thinking about.

     
  • CJ

    CJ - 2006-04-14

    attributes.patch

     

Log in to post a comment.