janboddez / feed-reader

A very simple feed reader plugin for WordPress
https://feedreader.site
GNU General Public License v3.0
11 stars 0 forks source link

Support OPML v2 #10

Closed janboddez closed 1 year ago

janboddez commented 1 year ago

Way we currently detect categories is, if an outline does not have a URL, we consider it a category, and keep that in memory as the "current" category. (This also wrongly applies a category to uncategorized items that somehow follow a [closed] "category" outline.)

https://github.com/janboddez/feed-reader/blob/fa03828a648ed6d330e8b9fe2e56c5757ee5bc21/includes/Helpers/class-opml-parser.php#L102

Think OPML v2 supports a comma-separated (?) category attribute on the actual feed items themselves, so we could try adding that in.

Since we support only one category per feed (which is different from WP's built-in taxonomies), we can either pick the first or the last one, for now.