Skip to content

Support channel image #8

Open
Open

Description

@onli

RSS and Atom both support setting a channel image, with the three nodes url, title and link. See https://cyber.harvard.edu/rss/rss.html#ltimagegtSubelementOfLtchannelgt for the RSS side, and https://tools.ietf.org/html/rfc4287#section-4.2.8 for the Atom side (I think that's the best fit, but it seems to support just an URL). Maybe feedparser could be extended to carry the channel image around?

Activity

  1. geraldb commented on Mar 6, 2019

    @geraldb
    Member

    One idea is to easily support access to the full underlying structure with all its additions (in a uniform "parsed" way e.g. xml or json converted to a nested ruby hash, for example.

    Also might be a good idea to check what feedjira https://github.com/feedjira/feedjira offers or how it handles channel images?

  2. onli commented on Mar 6, 2019

    @onli
    ContributorAuthor

    feedjira has a class for rss channel images in https://github.com/feedjira/feedjira/blob/master/lib/feedjira/parser/rss_image.rb/. I think it has no equivalents for atom and jsonfeed.

    Having full access to the origin structure sounds very useful. Something like https://stackoverflow.com/a/10144623/2508518 could work, though I assume nokogiri is not an ideal requirement for this gem.

  3. geraldb commented on Mar 6, 2019

    @geraldb
    Member

    Thanks. Good points. Soon or later the "old" standard rss library has to get replaced with something better. Why not nokogiri? I'm all for it. The only downside as far as I can tell is the "hard-to-install" part because it requires a c-extension. The idea of the nested hash is that it is uniform, that is, the same for xml and json - thus, I'm not sure if the nokogiri .to_hash format (or is it just a "dump") is a 100% fit here. But yeah it's the same basic idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions