09-15-2010, 10:29 AM | #1 |
Junior Member
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 |
09-15-2010, 11:23 AM | #2 |
Wizard
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 |
Advert | |
|
09-15-2010, 11:46 AM | #3 | |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Quote:
G |
|
09-16-2010, 03:50 AM | #4 |
Connoisseur
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. |
09-16-2010, 03:58 AM | #5 | |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
You should probably add which program zip.exe is part of, though. I'm guessing Winzip. |
|
Advert | |
|
09-16-2010, 05:05 AM | #6 |
Connoisseur
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. |
|
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 | 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 |