Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-15-2010, 10:29 AM   #1
jchrist
Junior Member
jchrist began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Feb 2010
Device: kindle
need option to remove iTunesMetadata.plist from epub files

Hi there,

I got a collection of free ebooks from a friend, which they had already put into iTunes, and thus iTunes has added an iTunesMetadata.plist file into the epub.

However, the metadata in that file is wrong, or at least not what I would choose.

For instance, I have a book where I've edited the title in calibre to be "On Basilisk Station", (the actual title) instead of what's in the iTunesMetadata.plist file "On Basilisk Station: The First Honor Harrington Novel", and I've set the series and book number appropriately as well.

I have about 35 books which I've edited the metadata in a similar fashion. Everything shows up perfectly in calibre.

However, when I connect to iTunes and add those books to my iTunes library, the iTunes driver uses the pre-existing iTunesMetadata.plist file instead of creating a new one with the current metadata, so the books show up in iTunes with the old, incorrect metadata.

Basically, if an epub already has that .plist file, it can not be used to edit iTunes' metadata as the original file rules.

As I use calibre primarily as an organizational/management tool for iTunes this is somewhat of a problem.

Is there a feature which will remove a pre-existing iTunesMetadata.plist file from epub files? If not, can such a feature be created?

I could manually unzip each file, remove the .plist and then re-zip them, but that's a laborious and error-prone process, and I don't imagine I'm the only one who has or will have this problem.

Thanks,
Jon
jchrist is offline   Reply With Quote
Old 09-15-2010, 11:23 AM   #2
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I'd look into writing a shellscript/ batch file using a command-line zip utility. For example, on Windows using 7zip, the following should achieve what you want:
Code:
for %1 in (*.epub) do 7z d "%1" iTunesMetadata.plist
That, saved as .bat, should cycle through every .epub in the current directory and remove the iTunes metadata file. Though, as a word of warning: This isn't tested, so there might be errors before it works, but the principle should be right.
Manichean is offline   Reply With Quote
Advert
Old 09-15-2010, 11:46 AM   #3
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Quote:
Originally Posted by jchrist View Post
Hi there,
Is there a feature which will remove a pre-existing iTunesMetadata.plist file from epub files? If not, can such a feature be created?
The Apple driver is designed to delete the existing iTunesMetadata.plist file before sending the ePub to iTunes. In looking at the code, it's possible that there are some scenarios in which the delete would not happen, based on your iTunes settings. Please create a debug trace as described in the first post of this thread, and create a ticket so I can look at the execution path.

G
GRiker is offline   Reply With Quote
Old 09-16-2010, 03:50 AM   #4
Coleccionista
Connoisseur
Coleccionista began at the beginning.
 
Posts: 67
Karma: 40
Join Date: Aug 2010
Device: iPad, Kindle Paperwhite
What Manichean said is probably the best way to quickly delete the plist file from all of the epubs.
You might also want to delete the iTunesArtWork file that may be present.

A word of warning though, through my extensive experience with manipulation of iTunesMetadata files and epubs I'd recommend zip.exe instead of 7zip (zip -d)

Over a couple of thousand books 7z complained in a high percentage of files of being unable to "open/write/update/etc" the epub while zip worked perfectly fine.
Coleccionista is offline   Reply With Quote
Old 09-16-2010, 03:58 AM   #5
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by Coleccionista View Post
What Manichean said is probably the best way to quickly delete the plist file from all of the epubs.
You might also want to delete the iTunesArtWork file that may be present.

A word of warning though, through my extensive experience with manipulation of iTunesMetadata files and epubs I'd recommend zip.exe instead of 7zip (zip -d)

Over a couple of thousand books 7z complained in a high percentage of files of being unable to "open/write/update/etc" the epub while zip worked perfectly fine.
The reason I picked 7zip is because I have no other compression programs installed. I've only actually tried to open ePubs once or twice.
You should probably add which program zip.exe is part of, though. I'm guessing Winzip.
Manichean is offline   Reply With Quote
Advert
Old 09-16-2010, 05:05 AM   #6
Coleccionista
Connoisseur
Coleccionista began at the beginning.
 
Posts: 67
Karma: 40
Join Date: Aug 2010
Device: iPad, Kindle Paperwhite
For zip.exe see this very forum

Where do I find zip.exe?
https://www.mobileread.com/forums/showthread.php?t=69965

JSWolf post provide a direct download link for zip & unzip.
Coleccionista is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil and itunesmetadata.plist Enesco Sigil 11 10-12-2010 06:34 AM
Files in root vs. folders: is there an option to do this? maxbookworm Calibre 6 07-31-2010 05:29 PM
Best option for reading large pdf files? eanach1 PDF 6 01-12-2010 01:55 AM
Remove books option Blurr Calibre 8 12-14-2009 03:36 PM
how to get epub/fb2 books or convert best option M9x3mos ePub 2 02-19-2009 12:13 PM


All times are GMT -4. The time now is 01:30 PM.


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