View Single Post
Old 03-10-2018, 05:41 PM   #1
homura_no_ko
Junior Member
homura_no_ko began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2018
Device: iPad mini4 (Marvin3), Windows 10 laptop
Problem with different metadata editing in opf

Hello, I have this problem where my epubs have completely different metadata editing in content.opf.
I don't use Calibre for any heavy editing, usually just add/edit title, series, author, tags metadata, and polish them afterwards.

Only, there's this problem.

I am using Marvin to read epubs on my iPhone 6s. The problem shows up when I add epubs to the app.
The thing is, half the epubs have the desired metadata and the other half is missing the metadata I painfully edited in Calibre.
Thinking that the problem must be in .opf I checked to find that:

The correctly showing metadata looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id" version="2.0">
<metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns: opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<dc:title>TITLE, Vol. 07</dc:title>
<dc:creator opf:role="aut" opf:file-as="SURNAME, Name">Name Surname</dc:creator>
<dc: publisher>PUBLISHER</dc: publisher>
<dc:rights>&amp;#169; AUTHOR 2012</dc:rights>
<dc:contributor opf:role="bkp">calibre (3.15.0) [https://calibre-ebook.com]</dc:contributor>
<dc:identifier id="uuid_id" opf:scheme="uuid">3595bd16-f653-4514-8555-fc7956dec1bb</dc:identifier>
<dc:date>2017-12-18T20:30:00+00:00</dc:date>
<dc:subject>Magic</dc:subject>
<dc:subject>Science Fiction</dc:subject>
<dc:subject>Action</dc:subject>
<dc:subject>Modern Fantasy</dc:subject>
<dc:language>en</dc:language>
<dc:identifier opf:scheme="calibre">7137d345-8b97-4265-82a6-3fc1ac17bf73</dc:identifier>
<meta name="calibre:title_sort" content="TITLE, Vol. 07"/>
<meta name="calibre:series" content="TITLE"/>
<meta name="calibre:series_index" content="7.0"/>
<meta name="cover" content="cover"/>
<meta name="calibre:timestamp" content="2018-02-04T18:22:05+00:00"/>
<meta content="horizontal-lr" name="primary-writing-mode"/>
<meta name="calibre:author_link_map" content="{&quot;NAME SURNAME&quot;: &quot;&quot;}"/>
<meta name="calibre:user_metadata:#status" content="{&quot;colnum&quot;: 2, &quot;#extra#&quot;: null, &quot;category_sort&quot;: &quot;value&quot;, &quot;search_terms&quot;: [&quot;#status&quot;], &quot;display&quot;: {&quot;description&quot;: &quot;&quot;}, &quot;kind&quot;: &quot;field&quot;, &quot;datatype&quot;: &quot;bool&quot;, &quot;is_category&quot;: false, &quot;#value#&quot;: true, &quot;is_custom&quot;: true, &quot;is_multiple&quot;: null, &quot;table&quot;: &quot;custom_column_2&quot;, &quot;is_multiple2&quot;: {}, &quot;column&quot;: &quot;value&quot;, &quot;rec_index&quot;: 22, &quot;is_editable&quot;: true, &quot;is_csp&quot;: false, &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;status&quot;, &quot;name&quot;: &quot;Status&quot;}"/>
</metadata>
<manifest>
...(excluded)
</manifest>
<spine toc="ncx" page-progression-direction="ltr">
...(excluded)
</spine>
<guide>
...(excluded)
</guide>
</package>


And the ones which metadata disappears when I add it to app:
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="pub-id" version="3.0" xml:lang="en" prefix="calibre: https://calibre-ebook.com">
<metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns: opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<dc:title id="id">TITLE, Vol. 07</dc:title>
<dc:creator id="id-1">AUTHOR SURNAME</dc:creator>
<dc:rights>Copyright © 2016 AUTHOR SURNAME</dc:rights>
<dc:identifier>calibre:882</dc:identifier>
<dc:identifier>uuid:9dd5ab9b-7046-429d-a19f-297865021b97</dc:identifier>
<dc:identifier id="pub-id">urn:uuid:e695aac4-3c2e-400b-9bb3-b1ba44ce5279</dc:identifier>
<dc:language>en</dc:language>
<dc:date>2018-03-08T00:00:00+00:00</dc:date>
<dc: publisher>PUBLISHER</dc: publisher>
<dc:subject>Fantasy</dc:subject>
<dc:subject>Magic</dc:subject>
<dc:subject>Humor</dc:subject>
<dc:subject>Adventure</dc:subject>
<opf:meta refines="#id" property="title-type">main</opf:meta>
<opf:meta refines="#id" property="file-as">TITLE, Vol. 07</opf:meta>
<meta name="cover" content="cover"/>
<meta name="calibre:timestamp" content="2018-03-10T21:37:39.073000+00:00"/>
<meta content="horizontal-lr" name="primary-writing-mode"/>
<opf:meta property="role" refines="#id-1" scheme="marc:relators">aut</opf:meta>
<opf:meta property="file-as" refines="#id-1">SURNAME, NAME</opf:meta>
<opf:meta property="belongs-to-collection" id="id-2">TITLE</opf:meta>
<opf:meta refines="#id-2" property="collection-type">series</opf:meta>
<opf:meta refines="#id-2" property="group-position">7</opf:meta>
<opf:meta property="calibre:author_link_map">{"AUTHOR SURNAME": ""}</opf:meta>
<opf:meta property="calibre:user_metadata">{
"#status": {
"#extra#": null,
"#value#": null,
"category_sort": "value",
"colnum": 2,
"column": "value",
"datatype": "bool",
"display": {
"description": ""
},
"is_category": false,
"is_csp": false,
"is_custom": true,
"is_editable": true,
"is_multiple": null,
"is_multiple2": {},
"kind": "field",
"label": "status",
"link_column": "value",
"name": "Status",
"rec_index": 22,
"search_terms": [
"#status"
],
"table": "custom_column_2"
}
}</opf:meta>
</metadata>
<manifest>
...(excluded)
</manifest>
<spine page-progression-direction="ltr" toc="ncx">
...(excluded)
</spine>
<guide>
...(excluded)
</guide>
</package>


I have no idea what to do, I tried to rewrite the opf, but when I saved it, closed edit book, then opened edit book again - any editing I did disappeared.

How should I solve it permanently? Is it even possible to do it within Calibre? I don't want to rewrite it all manually book by book.

Please
homura_no_ko is offline   Reply With Quote