Skip to content

[ENH] Consider better mf2 support #684

@janboddez

Description

@janboddez

Is your feature request related to a problem? Please describe.

SimplePie takes Mf2's output but disregards most of it. It also sets description based on, e.g., e-content but not, let's say, p-summary, which would be a much better fit for description.

Describe the solution you'd like

  1. Improve the algorithm that sets content and description for mf2 feeds.

  2. A get_data() method that returns the complete Mf2 data array would also be nice, and is very easy to implement. It'd allow SimplePie clients to do a whole lot more than is possible now (i.e., use the information in the reply-to or bookmark-of or repost-of arrays, most of which, again, is currently disregarded).

Describe alternatives you've considered

Was thinking along the lines of making parse_microformats() protected rather than private, so that software that integrates SimplePie can more easily override it.

Then I found set_parser_class() so I think I might be able to work off that.

Not sure (this would be my first SimplePie project) if this could eventually be spin off into a plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions