petea / sage

A feed reader for Firefox.
http://sagerss.com
27 stars 8 forks source link

Get Firefox Sync to sync state of RSS feeds #108

Open AlexHarrowell opened 11 years ago

AlexHarrowell commented 11 years ago

Firefox Sync currently syncs bookmarks between devices. This includes Sage feed folders (tested) but does not include their read/unread state or any cached items. If the state of the livemarks was visible to sync, this would provide a synchronised view of your RSS feed across any and all devices where you run Firefox.

This would not only be nice, it would also be a replacement for that RSS reader. If I understood how you're saving state at the moment I'd be up for writing a pull request.

petea commented 11 years ago

Feed state is currently being stored in Places annotations, which it seems Firefox Sync isn't interested in syncing. I think we should be able to store state in some attribute of the bookmark that Firefox Sync does touch.

AlexHarrowell commented 11 years ago

On 05/07/13 17:33, Peter Andrews wrote:

Feed state is currently being stored in Places annotations, which it seems Firefox Sync isn't interested in syncing. I think we should be able to store state in some attribute of the bookmark that Firefox Sync /does/ touch.

Looking at the Mozilla documents, Livemark and Folder objects don't have any attribute like "last_modified", although there's substantial support for defining your own sync objects.

— Reply to this email directly or view it on GitHub https://github.com/petea/sage/issues/108#issuecomment-20527773.

petea commented 10 years ago

True. We should look into creating a custom sync engine to handle Sage metadata:

https://developer.mozilla.org/en-US/docs/Firefox_Sync/JavaScript_Client_API http://mxr.mozilla.org/mozilla-release/source/services/sync/modules/engines/bookmarks.js

and separately, preferences:

https://developer.mozilla.org/en-US/docs/Firefox_Sync/Syncing_custom_preferences