Created
December 5, 2010 00:55
-
-
Save EnigmaCurry/728652 to your computer and use it in GitHub Desktop.
Remove empty books from calibre (books that have no formats available)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calibredb list -f title,author_sort,formats | grep ".*\[\]\W*$" | cut -d " " -f 1 | xargs -iXX calibredb remove XX |
Greetings from the future! 2025 and this still works! I get a couple of plugin initiation errors, but the script removes titles without formats.
Failed to initialize plugin: '/Users/prscarr/Library/Preferences/calibre/plugins/Goodreads.zip'
Failed to initialize plugin: '/Users/prscarr/Library/Preferences/calibre/plugins/Ignoble Epub DeDRM.zip'
Failed to initialize plugin: '/Users/prscarr/Library/Preferences/calibre/plugins/Inept Epub DeDRM.zip'
Failed to initialize plugin: '/Users/prscarr/Library/Preferences/calibre/plugins/Inept PDF DeDRM.zip'
Failed to initialize plugin: '/Users/prscarr/Library/Preferences/calibre/plugins/Kindle and Mobipocket DeDRM.zip'
Failed to initialize plugin: '/Users/prscarr/Library/Preferences/calibre/plugins/eReader PDB 2 PML.zip'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@walterbe
It seems it's possible to create an "empty" book in calibre, and then add files to it later. So that would probably why this happens.