Skip to content
forked from khanhas/zshelf

reMarkable app: Browse and download books from Z-Library

License

Notifications You must be signed in to change notification settings

phthallo/zshelf

 
 

Repository files navigation

title

Z-Library browser and downloader for reMarkable devices


This fork is not on Toltec.

Installation

[Note: If you are using a reMarkable 2, you will need rm2fb. This dependency means that Zshelf is not officially supported on versions higher than 3.3.2.1666. See the full list of supported versions here]

  1. Download the latest release from the Releases page, and unzip it.
  2. Edit your config.json file, as instructed below.
  3. Find your device IP address.
  4. Move the backend folder, config.json file and zshelf file in the release to your device to the location /home/root/apps/ [Note: Install a launcher, such as Remux or Oxide to be able to open Zshelf.] You can use the following command to move all at once, replacing the IP address if required.
    scp -r * [email protected]:/home/root/apps
  5. SSH into your device. Type the following to turn zshelf into an executable.
    chmod +x /apps/zshelf
  6. Restart your device, then start Zshelf from your launcher.

[IMPORTANT] Configure Domain and Cookie

As Z-Library does not allow anonymous downloads, you will need to configure your Z-library domain and session cookies to download from your reMarkable. This requires an existing account - free user accounts are limited to 10 books a day.

  1. Open https://singlelogin.re in your web browser. If this link doesn't work, refer to the masterpost of official Z-library links.
  2. Log in with your account.
  3. In any page, open up Console (hit F12 and switch to the Console tab), and run:
document.cookie

It will return a string that contains your cookie. Copy the parts that have remix_userkey and remix_userid and ignore the rest.

  1. Open config.json. Enter the URL you used to access Z-library as the "domain" value.
  2. Enter the string from above as the "cookie" value.
  3. Save the file.

Further Configuration

By default, Zshelf saves downloaded ebooks to Xochitl. You can skip this by setting "skipXochitl" to anything other than a null value.

To save your ebooks to another location (I'll add customising save location in Xochitl soon), set "additionalBookLocation" to the path of the location where you wish to save it (the default value is /home/root/Books) This option is useful if you use an external ebook reader, such as Koreader, on your reMarkable.

To edit your configuration from within the reMarkable, use a terminal text editor like vim or nano.

Development

This section assumes the use of a Linux based system.

  1. Set up reMarkable toolchain, NodeJS and npm
  2. Run git clone https://github.com/phthallo/zshelf and cd into it.
  3. Source the toolchain to load its environment variables. You will need to do this every time you open a new terminal.
$ source /opt/codex/rm11x/3.1.15/environment-setup-cortexa7hf-neon-remarkable-linux-gnueabi
  1. Run qmake
  2. Run make
  3. Run cd backend to move to the backend folder.
  4. Run npm install. This will generate a zshelf file.

Notes

Files saved to Xochitl will appear only after a restart.

Files saved to Xochitl also have the following properties, meaning they will not sync if you do not have Connect.

"deleted": false,
"lastModified": "1",
"lastOpenedPage": 0,
"metadatamodified": false,
"modified": false,
"parent": "",
"pinned": false,
"synced": false,
"type": "DocumentType",
"version": 1,
"visibleName": fileName

Credits

About

reMarkable app: Browse and download books from Z-Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • QML 49.0%
  • C++ 37.9%
  • JavaScript 10.9%
  • QMake 1.4%
  • Other 0.8%