Download books from an OPDS catalog using a Calibre plugin.
Calibre is a cross-platform open-source suite of e-book software. Calibre supports organizing existing e-books into virtual libraries, displaying, editing, creating and converting e-books, as well as syncing e-books with a variety of e-readers.
The Open Publication Distribution System (OPDS) catalog format is a syndication format for electronic publications based on Atom and HTTP. OPDS catalogs enable the aggregation, distribution, discovery, and acquisition of electronic publications.
The Calibre OPDS Client is a Calibre plugin that reads from an OPDS server and downloads the contents to a Calibre library.
-
Ensure Calibre is installed on your machine and the command line tools are available in your search path.
-
Install the plugin.
cd calibre_plugin calibre-customize -b .
-
Restart Calibre.
-
Add the plugin to the main toolbar.
- Open the Preferences menu.
- Under the
Interface
section, click on the button labeledToolbars & menus
. - Click the dropdown menu and select
The main toolbar
. - Select
OPDS Client
underAvailable actions
on the left side. - Click the right arrow (
>
) to add it to the main toolbar. - Click
Apply
, thenClose
the Preferences menu.
https://standardebooks.org/opds
- In the calibre you wish to copy from (in this example called
calibre1.home.lan):
- Click Preferences
- In the "calibre - Preferences" dialog:
- Click "Sharing over the net"
- In the "calibre - Preferences - Sharing over the net"
dialog:
- Click the "Start Server" button
- Select the checkbox "Run server automatically when calibre starts"
- Click the "Apply" button
- Click the "close" button
- In the calibre you wish to copy to
- Install this plugin (see the "How do I install it?" section)
- Click the "OPDS client" button
- In the "OPDS client" dialog
-
Edit the "OPDS URL" value, change
http://localhost:8080/opds
to
http://calibre1.home.lan:8080/opds
and then press the RETURN key on the keyboard
-
Click the "Download OPDS" button
-
Wait until the OPDS feed has finished loading (this may take some time if there is a large number of books to load)
- Note: if no books appear, try unchecking the "Hide books already in the library" checkbox. If that makes a lot of books appear, it means that the two calibre instances have the same books
-
select the books you wish to copy into the current calibre and click the "Download selected books"
- calibre will start downloading and installing the books:
- The Jobs counter in calibre's lower right corner, will show a decrementing number and the icon will spin
- The book list will be updated as the books are downloaded
- calibre will start downloading and installing the books:
-
The downloaded books will be in approximately the same order as in the original, but the time stamp will be the download time. To fix the time stamp, click on the "Fix timestamps of the selection" button
- The updated timestamps may not show up immediately, but they will show up after the first update of the display, and the books will be ordered according to the timestamp after stopping and starting calibre
-
This code is licensed under the GNU General Public License v3.0. For more details, please take a look at the LICENSE file.
Contributions are welcome! Please feel free to open an issue or submit a pull request.