Bring in bought books¶
Most people point Tandem at ebook and audiobook files they already have, and never need this page. If you buy audiobooks on Audible or ebooks on Google Play Books, Tandem can fetch them for you instead: it signs in to your own account, downloads what you bought, and files it into your library like any other book. This page covers both, what the server needs before either will work, and what the Import Sources page shows.
Your own purchases only
The importers act only on books bought on your own account, for your own use, converting between the ebook and audiobook you already own. Tandem ships no keys, licences or books, and the default server image ships none of the tools that remove DRM.
Before you start¶
- You are an admin on the server. Import Sources is an admin page.
-
For Google Play ebooks, the server image has to be built with the DRM plugins, which the default image leaves out. From the folder with your
docker-compose.yml:bash docker compose build --build-arg INSTALL_DRM_PLUGINS=1 docker compose up -dThis downloads two third-party Calibre plugins (DeACSM and DeDRM) from their own releases and installs them into the image. Rebuild with the flag again after each upgrade; a plain restart or a pull of an image built without it drops them.
-
For Audible, nothing extra is needed in the image. It downloads and converts with tools the default image already has.
- Backups are set up and you have saved
credential_enc_keys. The sign-ins you give Tandem below are stored encrypted with it, and a restore without it means signing in again.
Open Import Sources¶
System → Import Sources (the link is on the System status page). Each source has a card with:
- a status pill: Healthy, Syncing, Last sync failed, Not connected or Idle
- Status (connected or not), Last sync, and Auto-sync (every so many hours, or off)
- after a run, how many books were added, how many were already in library, and how many failed, with Show added books and Show errors to see which
- Run sync now, and an Auto-sync switch with how often to run it (1 to 168 hours)
Audible¶
- On the Audible card, click Connect Audible.
- Open the link it shows and sign in to Amazon, including any two-factor prompt. Amazon then sends you to a page that looks blank. That is expected.
- Copy the whole address of that blank page from your browser's address bar. It starts with
https://www.amazon.com/ap/maplanding?. Paste it into the box and click Connect. - Click Run sync now.
A sync lists everything on your Audible account, skips what Tandem already has, and downloads the
rest as .m4b audiobooks into your audiobook folder, named by the same filename pattern as the
rest of your library. A library scan runs afterwards, so the new books show up and pair like any
others. Turn on Auto-sync to pick up new purchases on a schedule.
Disconnect on the card removes the stored sign-in.
US Audible accounts only, for now. The importer signs in to Audible's US store, so an account from another Audible marketplace (UK, Germany and so on) cannot connect yet.
Google Play Books (ACSM)¶
When you click Download EPUB on a Google Play book that has DRM, you get a small .acsm file,
not the book. The .acsm is a ticket; the server uses it to fetch the book from Adobe and convert
it into a plain EPUB in your library.
Authorize once¶
The card first asks you to Authorize with Adobe. Pick one:
- Adobe ID (recommended). Sign in with a free Adobe account. Authorizing again later reuses the same account, and if you ever hit the device limit you can remove old devices on adobe.com.
- Anonymous. No account needed, but every authorization counts as a new device against a limit, and anonymous devices cannot be removed. Hit the limit and your only way forward is an Adobe ID.
Revoke Adobe authorization on the card removes it.
Add books¶
Either way works:
- Upload. Drag
.acsmfiles (or plain.epubfiles) onto the card, or click it to browse. Each one shows Added to library, Already in library, or why it failed. - Drop them in a folder. Files placed in
/data/imports/acsm/inbox/inside the server (your imports volume) are picked up automatically, about once a minute.
A DRM-free .epub dropped in either place goes straight into the library with no conversion.
Kindle¶
Not supported. Removing Kindle DRM needs the Kindle app on Windows or macOS, which cannot run inside the Linux server. If you want purchases to arrive by themselves, buying new ebooks on Google Play is the easiest route.
Why it is like this¶
The DRM tools are opt-in at build time. Most self-hosters never need them, and an image that ships them by default carries them for everyone. Building with the flag is a choice you make once, for your own server.
Sign-ins are stored encrypted, and the key is not in the backup. An Audible or Adobe sign-in is worth protecting, so a stolen backup alone does not give it away. The cost is that you have to keep the key yourself.
Go deeper¶
- Import sources — how the ACSM and Audible pipelines work and what the image contains
- Add your books
- Backups