Chapter 12

The Local Library, Importing and Exporting

Books as files: in, out, and kept on the device.

This is the guide that comes with Calibre Reader on iPhone, iPad and Mac. On Android, Windows and Linux some things differ: the app there has its own edition of this guide.

The Local Library

The Local Library lives under Browse › Local Library, whether or not you are signed in to a server. Its books are ordinary files in the app's own storage. They can be read, edited, given covers and further formats, merged and deleted exactly like a server's — and sent up to a server with Upload to … on the book's page.

Shelves and sections

A library on the device is browsed as a calibre-web one is. Choose it in the sidebar, and Browse offers its own Shelves and sections: Hot Books (the ones you opened last), Top Rated Books, Recently added Books, Random Books, Read Books and Unread Books (as you mark them finished), then Authors, Publishers, Categories, Series, Ratings, File formats and Languages. Make shelves there, and put a book on one from its page, under Shelves.

More libraries on the device

Besides the Local Library you can keep as many libraries on the device as you like — one for work, one for the children. They are listed in Settings › On This Device: New Library… makes an empty one, and each appears in the sidebar under Libraries with its own Import Books… button. Swipe one in Settings to delete it with its books.

A calibre library

Import calibre Library… copies a whole calibre library into a new library on the device. Choose the library's folder — the one that holds metadata.db — on the device or a cloud drive, and give it a name. Every book comes with its details, tags, series, rating, identifiers, cover and files.

On the way the folder is checked against its database, and Library Check reports what it found: the database's version and soundness, files the database lists that are missing or of another size, missing covers and books without files. The original library is only read, never changed.

Tip

Choose the folder rather than metadata.db itself: given a single file, the system lets the app see nothing beside it.

Importing

Files and folders

⋯ › Import to Local Library… (or Import Books… without a server) opens the system's file browser. Pick one file, many files, or a whole folder — on the device, on iCloud Drive, or on any drive the Files app shows: Dropbox, Google Drive, OneDrive, a network share, a USB stick.

From other apps

Choose Calibre Reader in any app's share sheet, or Open in… from Files or Mail. Book files, pictures, sound and video, text files and links to books all arrive under Browse › Imported Files. From there each can be opened, added to the Local Library, or uploaded to the current server.

A shared link to a book's page — in Apple Books, Open Library, Douban, a shop that names the ISBN, or any page that describes a book — is read for the book: its row shows the title and author, and its menu offers Add to Want to Read. The book is kept with its details and cover, without a file, and the link leaves Imported Files.

Books shares a book of your own by its title and author alone. Calibre Reader looks it up in the catalogues chosen for Fetch Metadata and shows it with its cover, its author and its publisher. Add Book keeps it in a library on this device under Want to Read, without a file; if you have the book already, Show the Book opens it, and Keep as a Text File keeps the words instead. A link to a book's page offers the same as soon as it arrives.

Uploading to a server

⋯ › Upload Books sends files straight to the current server as new books.

Exporting

Every format of each book is gathered — copied if it is on the device, fetched from its server if not — and you pick where it goes: a folder on the device or any cloud drive. With several books, Export offers three ways:

Individual Files
The files side by side, named Title - Author.ext, safe for every kind of drive and never overwriting one another.
One ZIP File
The same files in a single archive, easy to send.
calibre Library with Database
A folder laid out as calibre lays out a library — a folder per author, one per book with its files, cover.jpg and metadata.opf — and metadata.db beside them. calibre opens it as a library as it is, details and all, and calibre-web can serve it; this app can import it again.

Copying several books

The same menu offers Copy to Library…: choose a library on the device or a server your account may add books to (one it may not, or that cannot be asked, is shown greyed with the reason), then a Category and a Shelf for every copy — one there already or a new one — and what to do If a Book Is There Already. The copying shows how far it is; if it takes longer than a few seconds, Hide — Show Progress in Tasks puts the sheet away and ⋯ › Tasks follows it under In This App.