lemon24 / reader

A Python feed reader library.
https://reader.readthedocs.io
BSD 3-Clause "New" or "Revised" License
438 stars 36 forks source link

mark_entry_as_read(entry, read: bool = True) #256

Closed lemon24 closed 2 years ago

lemon24 commented 2 years ago

(found during https://github.com/lemon24/reader/issues/254#issuecomment-929998899)

It would be nice to allow users like the entry_dedupe plugin to call mark_entry_as_read(entry, read=read) instead of having to call mark_entry_as_read() or mark_entry_as_unread() depending on the variable.

We can keep mark_as_unread() as an alias to mark_entry_as_read(..., read=False).

That said, if Storage.mark_as_read() becomes stable, maybe we don't need to do this anymore.