Go to file
Aleksa Sarai ad33aea18d
obok: linux: improve Kobo Desktop directory searching
The Kobo Desktop program will (when running under Wine on Linux) put all
of its data in the current working directory. This means that there
may be more than one Kobo.sqlite floating around by the user, which
leads to Obok showing an outdated list of books and the user being
confused by Obok cannot find the full list of books.

Solving this completely appears to be a bit too complicated, so this
patch is a best-effort improvement for the worst cases which can be
caused by this:

 1. If the user deletes the files but Obok has already cached the path,
    previously Obok would just error out rather than trying to search
    for a new Kobo.sqlite path and updating the cache.

 2. We search $HOME before searching /, which speeds up initial usage of
    Obok in the common case (usually Kobo Desktop will be installed in
    ~/.wine/drive_c) and also ensures that we correctly preference the
    current user's Kobo Desktop installation.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2022-02-20 03:16:26 +11:00
.github Allow packaging without version number 2021-11-29 16:27:51 +01:00
DeDRM_plugin Add empty placeholder file for LCP 2022-01-11 07:57:02 +01:00
Obok_plugin obok: linux: improve Kobo Desktop directory searching 2022-02-20 03:16:26 +11:00
Other_Tools Bugfixes in standalone code for Calibre < 5 / Python 2 2021-12-29 11:39:48 +01:00
.gitignore Cleanup 2021-12-29 09:14:35 +01:00
CALIBRE_CLI_INSTRUCTIONS.md Cleanup 2021-12-29 09:14:35 +01:00
CHANGELOG.md Remove LCP references from Readme 2022-01-11 08:42:37 +01:00
DeDRM_plugin_ReadMe.txt LCP support 2021-11-17 21:53:24 +01:00
FAQs.md Update FAQ 2022-01-11 12:02:44 +01:00
README.md LCP support 2021-11-17 21:53:24 +01:00
ReadMe_Overview.txt Remove LCP references from Readme 2022-01-11 08:42:37 +01:00
make_release.py Bugfixes in standalone code for Calibre < 5 / Python 2 2021-12-29 11:39:48 +01:00
obok_plugin_ReadMe.txt Remove stand-alone apps. Only support the two plugins. 2020-02-16 10:12:25 +00:00

README.md

DeDRM_tools

DeDRM tools for ebooks

This is a fork of Apprentice Harper's version of the DeDRM tools. I've added some of the PRs that still haven't been merged, as well as added some more features / bugfixes myself.

Take a look at the CHANGELOG to see a list of changes since the last version by Apprentice Harper (v7.2.1). This plugin will start with version v10.0.0 so there won't be conflicting / duplicate version numbers when Apprentice Harper's version is updated again.

The v10.0.0 versions of this plugin should both work with Calibre 5.x (Python 3) as well as Calibre 4.x and lower (Python 2). If you encounter issues with this plugin in Calibre 4.x or lower, please open a bug report.

Original README from Apprentice Harper

This is a repository that tracks all the scripts and other tools for removing DRM from ebooks that I could find, committed in date order as best as I could manage. (Except for the Requiem tools for Apple's iBooks, and Convert LIT for Microsoft's .lit ebooks.) This includes the tools from a time before Apprentice Alf had a blog, and continues through to when Apprentice Harper (with help) took over maintenance of the tools.

The individual scripts are now released as two plugins for calibre: DeDRM and Obok. The DeDRM plugin handles books that use Amazon DRM, Adobe Digital Editions DRM (version 1), Barnes & Noble DRM, and some historical formats. The Obok plugin handles Kobo DRM.

Users with calibre 5.x or later should use release 7.2.0 or later of the tools. Users with calibe 4.x or earlier should use release 6.8.x of the tools.

For the latest Amazon KFX format, users of the calibre plugin should also install the KFX Input plugin from the standard calibre plugin menu. It's also available from the MobileRead thread here: https://www.mobileread.com/forums/showthread.php?t=291290

Note that Amazon changes the DRM for KFX files frequently. What works for KFX today might not work tomorrow.

I welcome contributions from others to improve these tools, from expanding the range of books handled, improving key retrieval, to just general bug fixes, speed improvements and UI enhancements.

I urge people to read the FAQs. But to cover the most common: Use ADE 2.0.1 to be sure not to get the new DRM scheme that these tools can't handle. Do remember to unzip the downloaded archive to get the plugin (beta versions may be just the plugin don't unzip that). You can't load the whole tools archive into calibre.

My special thanks to all those developers who have done the hard work of reverse engineering to provide the initial tools.

Apprentice Harper.