View Single Post
Old 08-28-2012, 12:48 PM   #1
Npnth
Junior Member
Npnth began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: Kobo Touch
Metadata tag dc:title overwritten on transfer to Kobo Touch

Hi,

In the past few days (first noticed with 0.8.65, still noticed with 0.8.66), I've noticed that all the files I transfer to my Kobo Touch aren't showing up with the correct titles - they appear as "Unknown," even though the epub is correctly named in the file structure, in my calibre library, and even in the epub file stored on my computer.

For reference, here is the output of a diff between the contents of the epub in my calibre library and the contents of the epub as it appears on my device.

Code:
diff -rupN calibre/content.opf kobo/content.opf
--- calibre/content.opf 2012-08-28 11:19:20.000000000 -0400
+++ kobo/content.opf    2012-08-28 11:19:20.000000000 -0400
@@ -1,18 +1,21 @@
-<?xml version='1.0' encoding='utf-8'?>
+<?xml version="1.0"  encoding="UTF-8"?>
 <package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id">
   <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">
-    <meta name="calibre:title_sort" content="Brothers Karamazov, The"/>
-    <meta name="calibre:rating" content="4.00"/>
-    <dc:language>en</dc:language>
-    <dc:creator opf:file-as="Dostoyevsky, Fyodor" opf:role="aut">Fyodor Dostoyevsky</dc:creator>
+    <dc:creator opf:role="aut" opf:file-as="Dostoyevsky, Fyodor">Fyodor Dostoyevsky</dc:creator>
+<meta name="calibre:title_sort" content="Brothers Karamazov, The"/>
+    <meta name="calibre:rating" content="4"/>
     <meta name="calibre:timestamp" content="2012-06-19T16:26:54+00:00"/>
-    <dc:title>The Brothers Karamazov</dc:title>
+    <dc:title>Unknown</dc:title>
     <meta name="cover" content="cover"/>
     <dc:date>2012-06-20T16:26:54+00:00</dc:date>
     <dc:contributor opf:role="bkp">calibre (0.8.65) [http://calibre-ebook.com]</dc:contributor>
     <dc:identifier opf:scheme="ISBN">0553212168</dc:identifier>
     <dc:identifier id="uuid_id" opf:scheme="uuid">72b1b157-163f-48c0-a71b-ba91897bf3af</dc:identifier>
-  </metadata>
+  <meta name="calibre:user_categories" content="{}"/>
+<meta name="calibre:author_link_map" content="{&quot;Fyodor Dostoyevsky&quot;: &quot;&quot;}"/>
+<dc:language>en</dc:language>
+<meta name="calibre:user_metadata:#series" content="{&quot;is_category&quot;: false, &quot;#extra#&quot;: null, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;colnum&quot;: 1, &quot;column&quot;: &quot;value&quot;, &quot;rec_index&quot;: 22, &quot;search_terms&quot;: [&quot;#series&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;is_multiple2&quot;: {}, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;float&quot;, &quot;#value#&quot;: null, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_1&quot;, &quot;is_editable&quot;: true, &quot;label&quot;: &quot;series&quot;, &quot;display&quot;: {}, &quot;name&quot;: &quot;Series#&quot;}"/>
+        </metadata>
   <manifest>
     <item href="cover.jpeg" id="cover" media-type="image/jpeg"/>
     <item href="OEBPS/text/content002.xhtml" id="content002.xhtml" media-type="application/xhtml+xml"/>
Binary files calibre/cover.jpeg and kobo/cover.jpeg differ
As you can see, the content.opf seems to be modified in transit. I'm not sure if this happens with any other versions.
Npnth is offline   Reply With Quote