0

Reading progress - books

darksidestarea 2 years ago updated 2 years ago 2

Hi,

i am trying to modify theme (Material 1.7.0) to show reading progress for books (epub mostly), using the themeScript.js from https://gist.github.com/j4c3/fa5b983cd36afce56e35c1dd52059334 (original discussion: https://ubooquity.userecho.com/en/communities/1/topics/845-adding-currently-reading-label-to-comics)- but cannot get it to work. It works on comics, but not on books.

I understand that there is different calls to read status (data) for books and comics, but don't know how to modify script for that.

Any suggestions?

Thanks in advance!

It looks like for ebooks, this will get the mark: 

/user-api/bookmark?isBook=true&docId=<ID>


The data it returns is different: 

"mark" : "4#0",


But, I don't see any books, pdf or epub, that have a total number of pages displayed in the interface.  Without that, you could get a mark to show it was started, or what current page it was on, but not a progress bar.

OK, i will check that out.


Thanks for the reply!