I'm trying to only query all bookmarked (RSS/Atom)-feeds from a Firefox addon, with the SDK.
But feeds are ignored when the query is returned, only bookmarks to web sites are returned. Anybody an idea, how to correctly query only the feeds?
I'm using the examples from https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Places_Developer_Guide#Reading
When I query the Bookmarks all Feed-Folders are ignored. However, it seems that I need the folderId and can then query if the folder id is a feed:
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Using_the_Places_livemark_service
It's pretty easy, once you know how :-)
const { Cu } = require("chrome");
Cu.import("resource://gre/modules/PlacesUtils.jsm");
var feeds = PlacesUtils.annotations.getAnnotationsWithName("livemark/feedURI");
feeds.forEach(function(feed){
console.log(feed.annotationValue);
});