Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Purging ePub info from iTunes application to correct meta data typo

I prepared ePubs using both Stanza and calibre.
On one of them I made a typo of the author's name. Fixing it in iTunes did not fix it - makes sense, since it is different meta data.
So I deleted the book, and fixed the ePub meta data in Stanza, and also checked it in calibre.

However, when I load it back into iTunes, the old meta data does not seem to want to go away. How do I fix it?

MacBook Pro 2.8GHz, Mac Pro 3Ghz Quad, Mac mini 1.42Ghz, others, Mac OS X (10.6), iPod Nano 1, 2, 3, 5, 5G, 3G, 1G, minis, shuffles...

Posted on May 17, 2010 2:00 PM

Reply
12 replies

May 17, 2010 2:24 PM in response to HaraldS

However, when I load it back into iTunes, the old meta data does not seem to want to go away. How do I fix it?

Was the file sync'd to your iPad? If so, try deleting it from the iPad, as well as, iTunes. Then sync the iPad with iTunes so than neither has a copy. Disconnect the iPad and then reconnect it to update the "iPad back-up" file BEFORE re-adding the corrected file. Not sure, but I think this is what i did to get rid of a similar problem with modified cover art. Am assuming it is the "Back-up" file that is the culprit here and keeps restoring the unwanted data.


User uploaded file

May 18, 2010 11:54 AM in response to jmfmft

I have a new iPad and a newer Sony eReader. I have about 5 books that I would like to move into my iBooks before I give eReader to my sister. I googled how online and came up with Stanza/Calibre info, but am still quite foggy on how to do to this.

Assuming the files on the Sony Reader are DRM-free, I would normally use Caibre to do this but you could also use any similar content manager or even the Mac "Finder". (I.e., Calibre already manages files for 2 Sony Readers, as well as, my Kindle on my system.) Your first step would be to open Calibre. Next you would connect the Sony Reader. Once the Sony Reader icon appears in the window next to the Calibre Library icon, select the reader icon. This should bring up a list of the files currently found on the Sony Reader. Now simply select the files your wish to transfer to your iPad and press the "Save to Disk" icon to transfer the files to your hard drive. When done making the transfers, simply select the files you wish to remove from the Sony reader and press the "Remove Books" icon to delete them from the device. Files previously save to your hard drive can then be added to iTunes for normal synchronization to the iPad. That's all there is to it.

P.S. For future reference, it is considered more courteous to open your own specific topic in these forums rather than "hi-jacking" someone else's.


User uploaded file

May 18, 2010 2:49 PM in response to jmfmft

Books brought through the Sony Stone are encrypted with Adobe's ADEPT DRM. You must unencrypt the books and then Calibre will be able to convert them for your own personal use in your iPad.

Also note that books you buy from Apple will also be encrypted using Apple's DRM and you will not be able to view them in your Sony reader.

http://vivaebooks.blogspot.com/2009/10/iphone-reading-adobeepub-ebooks.html

Jun 12, 2010 3:15 PM in response to Jon Walker

This does not seem to work.

I have been banging my head against this for hours now. iTunes insists on remembering metadata but every once in a while, it tantalizingly actually seems to "forget" old metadata and recognizes new metadata--however, I can find no pattern and cannot reproduce it on command.

Can anyone figure out where this info is being stored? I can't find it anywhere in the Music/iTunes directory structure.

Jun 12, 2010 4:06 PM in response to Trevor Smith1

Wow. The mystery is revealed, and it is a strange twist indeed. I consider this a bug in iTunes. This is what is happening:

When you drag an epub file and drop it in your iTunes library, iTunes:

1. looks in the /META-INF/container.xml file inside the epub file (a folder/file of this name is required by the epub standard);

2. reads, from the container.xml file, the the location of the "rootfile" of the epub (this ENTRY is also required by the epub standard) -- for example, it might be something like:

<rootfile media-type="application/oebps-package+xml" full-path="11231/content.opf"/>

3. reads various "metadata" from the content.opf file (in this example--this file name is arbitrary), including author name and book title;

4. creates standard iTunes directories inside your "~/Music/iTunes/iTunes Music" hierarchy -- e.g.

"/Users/trevor/Music/iTunes/iTunes Music/Herman Melville/Unknown Album"

5. COPIES the epub file into this directory, LEAVING the original epub wherever you had it saved;

6. ADDs a file called "iTunesMetadata.plist" to the COPY of the epub that it has just saved into the iTunes hierarchy;

AND -- and this is the unexpected, buggy, bizarre, part -- THEN

7. ADDs the same "iTunesMetadata.plist" file to the ORIGINAL epub file.

The iTunesMetadata.plist file contains info on author and title of the book and since it has now unexpectedly been added to your ORIGINAL epub file, without any notice to you, it gets copied back into iTunes every time you drag and drop the ORIGINAL. Even if you modify the author/title metadata in the normal epub locations (this info is stored in the rootfile), the iTunesMetadata.plist NEVER gets updated.

Real Solution: Apple must fix this bug.

Workaround:

1. open terminal;

2. navigate to wherever your ORIGINAL epub is;

3. zip -d NameOfYourePubFile.epub iTunesMetadata.plist
(substitute the real name of your epub where appropriate above)

Sep 9, 2010 7:21 AM in response to heytaxi

Yes, iTunes adds its iTunesMetadata.plist file to BOTH the original and the copy it creates. Once iTunes has put the iTunesMetadata.plist file into the original, it ONLY seems to read metadata from that file (which makes sense) and does not seem to want to change it, no matter what you put in the content.opf file (which is where metadata gets stored according to the epub standard).

This is a bug IMO, since if iTunes is making a copy of the epub for itself, then there is no reason to add files to the original epub that it leaves wherever you had stored it.

Dec 9, 2010 3:10 PM in response to David Neale1

Trevor, lad, you're brilliant. I've spent several days poring over my code, searching the web, posting questions, doubting my sanity. At last you have provided the answer. Apple don't get many bad marks from me, but in this case they certainly deserve some.

I've written a piece of software to generate ePub files from text, including splitting into chapters, generating all the auxiliary files required by ePub and so on. I made a mistake with the first version and, when I loaded the ePub to iTunes, I saw that the title and author place-holders had not been replaced. That was an easy correction. Or, at least, the filling of the place-holders locally was easy, but no matter what I did, iTunes continued to show the erroneous data.

I've just executed your fix, reloaded the ePub to iTunes and it's perfect.

Thank you, thank you, thank you.

May 6, 2011 12:55 PM in response to HaraldS

I am like u. I am new at this. If I subscribe to calibre and has the app in my iPad, how to I open it via iTunes icon? Sounds dumb of me but I am really new at this. I would like to put my Sony ereader books into my iPad so what ever I have on hand, I can read the same book. I also want to transfer my documents to my iPad but it's a Word doc. I have a pc not a Mac book. Can someone help me? Step by step please. I have spent a lot of time on this two issues.

Purging ePub info from iTunes application to correct meta data typo

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.