Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2022, 08:14 PM   #1
eBookWorm21
Junior Member
eBookWorm21 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2013
Device: iBooks and other iPad apps (Nook, Kindle)
Adding EPUBs/PDFs back to Calibre Library

I think I may have shot myself in the foot, so to speak, by removing the EPUBs from my Calibre Library to Apple Books, and then deleting them from my Calibre Library. I realized afterwards, with 20/20 hindsight, that there were other files in the ebook's Calibre Library folder that it created when I originally added them the the Library.

Calibre has some features that Apple Books doesn't have, so I'd like to copy my ebooks back to Calibre. I have a full copy of my library on an external hard drive. I'm running macOS Ventura 13 and Calibre 6.8.0, which seems to be the most current version.

I am getting errors like this when I add some of the EPUBs back to Calibre:

calibre, version 6.8.0
WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information
----------------------------------------------------------------------
Failed to add the file /Volumes/WD 2TB External Drive/Apple Books PDFs backup/'Salem's Lot.epub to the book: /Volumes/WD 2TB External Drive/Apple Books PDFs backup/'Salem's Lot
With error:
Traceback (most recent call last):
File "calibre/gui2/add.py", line 487, in add_formats
File "calibre/db/cache.py", line 1810, in add_format
IsADirectoryError: [Errno 21] Is a directory: "/Volumes/WD 2TB External Drive/Apple Books PDFs backup/'Salem's Lot.epub"

When I click through the error, it add it to the Library, but in the TITLE column, it shows the file path where the file resides, instead of the real title. No Author information is shown.

When I double-click to open it from the Library, I get this error:

calibre, version 6.8.0
ERROR: Cannot view: /Volumes/WD 2TB External Drive/Apple Books PDFs backup/'Salem's Lot has no available formats.


Is there a way to add these ebooks back to Calibre Library?

(If there's any helpful detail I omitted, please advise)

Thank you
eBookWorm21 is offline   Reply With Quote
Old 11-20-2022, 11:52 PM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
I'm not familiar with macOS, but this topic may be helpful:

https://www.mobileread.com/forums/sh...d.php?t=285505
Comfy.n is offline   Reply With Quote
Advert
Old 11-21-2022, 12:00 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those arent actual epub books but directories whose name ends with .epub. These are created by iBooks. There are some scripts floating around that can turn these back into proper epub files which you can then add to calibre.
kovidgoyal is offline   Reply With Quote
Old 11-21-2022, 08:30 PM   #4
eBookWorm21
Junior Member
eBookWorm21 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2013
Device: iBooks and other iPad apps (Nook, Kindle)
Thank you.
eBookWorm21 is offline   Reply With Quote
Old 11-21-2022, 08:41 PM   #5
eBookWorm21
Junior Member
eBookWorm21 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2013
Device: iBooks and other iPad apps (Nook, Kindle)
Quote:
Originally Posted by kovidgoyal View Post
Those arent actual epub books but directories whose name ends with .epub. These are created by iBooks. There are some scripts floating around that can turn these back into proper epub files which you can then add to calibre.
Thank you.

I am not familiar with "scripts." Are these used with Calibre?

Also I should clarify that these EPUBs were not Apple iBooks. They were sourced elsewhere as EPUBs, then opened in Adobe Digital Editions, then added to Calibre Library. That may not have any bearing on your answer, but I am so new to this game I thought it worth adding.

Your forbearance is appreciated.
eBookWorm21 is offline   Reply With Quote
Advert
Old 11-21-2022, 11:00 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
They are standalone scripts not part of calibre. Google something like extracting epubs from ibooks or folder epub ibooks and you should find the references.
kovidgoyal is offline   Reply With Quote
Old 11-21-2022, 11:05 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
The problem is that when you copied the books to iBooks (or Books as it is now unaffectionately known), the .zip epub container was unpacked into a directory.

There is a script available on Mobileread in the ePub Zip/Unzip AppleScript application for Mac OS X thread but I'm not sure if it will still work. I did play with eCanCrusher a couple of years back and it worked on a virtual Mac.

If you use your favourite search engine for a search such as "OSX script for packing directories into epub files" comes up with quite a few hits.
DNSB is online now   Reply With Quote
Old 11-22-2022, 06:27 AM   #8
eBookWorm21
Junior Member
eBookWorm21 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2013
Device: iBooks and other iPad apps (Nook, Kindle)
Thanks again!
eBookWorm21 is offline   Reply With Quote
Old 01-01-2023, 06:59 AM   #9
jannik42
Junior Member
jannik42 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2023
Device: Kindle
Lightbulb How to convert iBooks ePub to "real" ePub

Calibre expects ePub-files to be zip-compressed.

If you right-click (or control-click) on the file and get the option to "Show Package Contents", the file is actually a folder.

You can simply choose "Compress" from the context menu in Finder. This will create a "name.epub.zip" file. Now rename it to "name.epub" and add it to Calibre!

No script necessary

Last edited by jannik42; 01-01-2023 at 07:00 AM. Reason: formatting
jannik42 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to export PDFs as Fixed-Layout ePubs in Calibre? garethd Conversion 10 09-10-2023 02:33 PM
My library went back to only epubs Sydney's Mom General Discussions 6 09-09-2016 01:22 AM
Can I disable Calibre adding 50kb to epubs when sending to device? Zhaan Library Management 7 07-13-2016 04:22 PM
Aura HD Library Sort (Sideloaded epubs through Calibre) Prepper Kobo Reader 2 06-21-2013 03:44 PM
Calibre and Nook Color - adding own ePubs Themus Nook Color & Nook Tablet 13 12-12-2010 08:51 PM


All times are GMT -4. The time now is 09:37 PM.


MobileRead.com is a privately owned, operated and funded community.