Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Setting book read state when downloading via hooks subsystem #337

Closed
Church- opened this issue Nov 11, 2023 · 2 comments
Closed

Setting book read state when downloading via hooks subsystem #337

Church- opened this issue Nov 11, 2023 · 2 comments

Comments

@Church-
Copy link

Church- commented Nov 11, 2023

Hi there,

I'm currently working on modifying a plugin for grabbing books via OPDS.

Something I'd like to add to it is the ability to set the reading state of a book if the OPDS feed has that info/I can otherwise access it via API.

There are a number of books I keep on my e-reader for archival purposes that I'd like to automatically set as finished on download so they don't show up in my default search feed.

Correct me if I'm wrong but reading over the example code from the wallabag fetcher it seems like I'd just need to create a ReaderInfo json object as part of my info object before passing it via the addDocument event, no?

@baskerville
Copy link
Owner

Correct me if I'm wrong but reading over the example code from the wallabag fetcher it seems like I'd just need to create a ReaderInfo json object as part of my info object before passing it via the addDocument event, no?

I'm afraid it won't work : the reader field has the serde attribute skip set.

@Church-
Copy link
Author

Church- commented Nov 11, 2023

Bothersome, is there a way around that?
Other then compiling a fork with the skip attribute changed to something more lax?

I assume I can't just use the _reader field ya?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants