Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-21-2023, 02:33 AM   #1
Dullahir
Zealot
Dullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blueDullahir can differentiate black from dark navy blue
 
Dullahir's Avatar
 
Posts: 146
Karma: 13316
Join Date: Nov 2010
Location: Deva, Romania
Device: Android
Files corrupted because they were renamed

Hey guys,
Really odd issue, and I'm wondering if anyone has run into this before.

So before I transferred these ebooks to my external hard drive for storage, I renamed them, using the 'Save Books' template: Author - Series Name # - Title.

After doing so, and trying to move them back to Calibre at a later time, (using the most recent version, by the way), EVERY SINGLE FILE is now corrupt. I can tell because the covers are missing. The whole 'Not a Valid Zip' for my epubs is also a dead giveaway.

Why is this odd? Because the only corrupted files are the ones I saved with the aforementioned template.

My guess? The added hyphen in the title is causing some issues.

Here are two examples of corrupted files:

Title: Ambrose Ibsen - House of Souls 01
Author: The House of Long Shadows
(For some reason, that was the name of the file when added to calibre)

Title: Alan Baker -
Author: Dyatlov Pass

(This shows up as Alan Baker - - Dyatlov Pass.epub in the file explorer)

Am I crazy to think that those hyphens are causing some issues? Because I'm currently looking at 318 files that I can no longer use.

Would turning off 'Read metadata from file contents rather than file name' have made a difference? Because to me, it seems like that's exactly why the ebooks imported with the author name and series in the Title field and the Title in the Author Field in the first place.

Last edited by Dullahir; 11-21-2023 at 02:41 AM.
Dullahir is offline   Reply With Quote
Old 11-21-2023, 03:25 AM   #2
Fithaly
Junior Member
Fithaly began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2023
Device: none
Wow, that sounds tough! Renaming files can mess things up sometimes. The hyphens might be causing the trouble, like mixing up the title and author. Turning off 'Read metadata from file contents rather than file name' might help next time. It's not crazy to think those hyphens are causing issues, especially if they're making the files act weird.
Fithaly is offline   Reply With Quote
Advert
Old 11-21-2023, 03:46 AM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Dullahir View Post
Would turning off 'Read metadata from file contents rather than file name' have made a difference? Because to me, it seems like that's exactly why the ebooks imported with the author name and series in the Title field and the Title in the Author Field in the first place.
If 'Read metadata from file contents rather than file name **' is unchecked the metadata will be extracted from the file name according to what is specified in Configure metadata from file name->Regular expression

** IM(long held)O that would be better expressed as two radio buttons

Read metadata from: File content ◉ File name ◎

And which OS are you using, if it's MacOS you should know that it is addicted to unpacking EPUBs into folders with the extension epub.

BR

Last edited by BetterRed; 11-21-2023 at 04:52 AM. Reason: typo
BetterRed is offline   Reply With Quote
Old 11-21-2023, 04:42 AM   #4
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 835
Karma: 11003000
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, Boox Note Air 2+
If the files show "not a valid zip", have you tried opening the file with your favorite archive tool? Like 7zip? Because if the files are actually corrupted, you cannot save them by ignoring metadata, they are broken.
rantanplan is offline   Reply With Quote
Old 11-21-2023, 05:52 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Not a valid Zip is a Damaged file (probably missing a block ore more).
The name issue, in this case is a red herring.
theducks is offline   Reply With Quote
Advert
Old 11-21-2023, 06:42 AM   #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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I highly doubt that the filename containing hyphens could cause file corruption. This should be easy to test however. Statr with a new book that you open and verify is not corrupted, then save it using your suspect template and see what happens.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted files ThanosNaranja Calibre 4 11-22-2021 05:12 AM
Calibre renamed my files, kept both, and shows none; then the files disappear aritza Library Management 3 04-02-2018 07:46 AM
files are being automatically renamed ruining links. user743 Editor 4 05-06-2014 07:05 AM
Renamed PRC files don't work when sideloading Zora Kindle Formats 12 05-17-2013 05:25 PM
Corrupted files speakingtohe Calibre 2 08-20-2010 04:31 PM


All times are GMT -4. The time now is 06:08 PM.


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