qwertynerd97 / ao3-reader

Ao3 Work Reader
Other
0 stars 0 forks source link

This project aims to create a eink-friendly view of Archive of Our Own for Kobo devices, allowing reading and interacting with works without having to save them to local memory first. It also aims to provide functionality that Ao3 has declined to implement on their end, such as the ability to set default search parameters, and the ability to easily access saved searches.

Pre-emptive FAQ

Why isn't this being made as an addon to Plato?
The structure of Ao3 works don't map particularly well to documents in Plato, which makes shoehorning them in tough, plus this code requires a lot of additional network functionality. But eventually there'll be a passthrough to Ao3's epub download functionality which will let you save and open stuff in Plato later.

Why is the binary so much larger than Plato?
Network and HTML processing packages, mostly. If Ao3 ever releases an API, we'll be able to ditch the latter (as reqwests, the HTTP client package, has hooks for JSON processing), but until then we're stuck scraping full HTML pages and then extracting the necessary bits. But hey, it's still smaller than trying to save an entire tag off into epub and loading that, right?

Will you make a version for [other site]?
No, but you're welcome to fork this and do it yourself! The changes I've already made in the code should make it a lot easier to port for another site, as various views and handlers exist already.

Using Ao3 Reader

"One Click" Setup

  1. Connect your Kobo device to the computer
  2. Download the one click install file for AO3Reader
  3. Unzip into the root of the Kobo (KOBOeReader drive)
  4. Add the following lines to the .kobo/Kobo/Kobo eReader.conf file
    [FeatureSettings]
    ExcludeSyncFolders=(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)
  5. Update the Setting file to add your Ao3 Login and your favorite tags
    • Rename the .adds/ao3reader/Settings-sample.toml file to Settings.toml
    • [Optional] Setup login - this allows you to access your Marked For Later, and any archive-locked fics
      • Set the username value to your Ao3 username
      • Set the password value to your Ao3 password
    • [Optional] Setup favorite tags
      • On the line that looks like faves=[], add any favorite tags in the form ["Tag Name", "Tag URL"], with individual tags seperated by commas
    • Note: Although both login and tags are optional because the reader will still technically work, the current beta does not provide a way to look up an arbitrary tag. If you do neither, you will just get a blank screen with no way to read any works
  6. Eject your Kobo - It should immediately enter an install cycle that looks like it is updating

Credits

Known Issues:

To be Done:

Questions: