Quill-OS / quill

An open-source, Qt-based eBook reader for Kobos (and other devices).
https://quill-os.org
Other
403 stars 12 forks source link

Gutenberg Integration Improvements #70

Open dastardlyfinger323 opened 7 months ago

dastardlyfinger323 commented 7 months ago

Discussed in https://github.com/Kobo-InkBox/inkbox/discussions/69

Include a toggle in the Library for viewing popular and random books atop the latest added, and increase the number of books fetched to at least 10 pages instead of 2 ("infinite" would be ideal). OR Have the Library display the most frequently downloaded books/authors for that day/week/month, and then add toggles to the Search for random, popular, and recently added books.

tux-linux commented 7 months ago

Hi, these are good ideas, but unfortunately probably very hard to implement as we rely solely on regular expressions to parse Gutenberg catalog. You can have a look here and see for yourself: https://github.com/Kobo-InkBox/rootfs/tree/master/usr/local/bin/gutenberg As far as I can see, the csv catalog does not provide information for most popular books.

Szybet commented 7 months ago

Lol this method is cursed and is a meme image

Jokes aside, there are libraries to parse html in a way like json - very convenient. So the problem is not "It's not possible" the problem is there is no people and time for that

tux-linux commented 7 months ago

Well, it's not parsing HTML, it's parsing CSV (thankfully)

Szybet commented 7 months ago

Thats's even worse, csv is a cool database format

marzagheddon commented 7 months ago

what about removing Project Gutemberg integration enterely? It doesn't make sense to have a botched implementation

Szybet commented 7 months ago

We plan to implement OPDS in the far future for a replacement