... and if it really matters to anyone (iTunes doesn't seem to care) whether or not the Archive bit is cleared (which is iTunes' current manner of handling the task, although the resultant filesize seems to be the same either way), that can be accomplished by using this line instead of the earlier one:
Code:
zip -AC "path to my.epub" "iTunesMetadata.plist"
... which allows one to include specific iTunes tags and sorting structure, such as this, in a custom
iTunesMetadata.plist:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>artistName</key>
<string>AuthorFirstName AuthorLastName</string>
<key>book-info</key>
<dict>
<key>cover-image-path</key>
<string>OEBPS/Images/cover.jpg</string> <-- make sure this is correct for your book!
</dict>
<key>genre</key>
<string>Genre</string>
<key>itemName</key>
<string>Title</string>
<key>releaseDate</key>
<string>yyyy-mm-dd</string>
<key>sort-artist</key>
<string>AuthorLastName, AuthorFirstName</string>
<key>work</key>
<string>Grouping/Series (if applicable)</string>
<key>sort-name</key>
<string>Grouping/Series (if applicable) Number (if applicable): Title</string>
</dict>
</plist>
Assuming your *.epub passed validation before you added the
iTunesMetadata.plist, and you follow this method, it should still pass
after you add the file.
- M.