Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-10-2019, 12:13 PM   #1
un_pogaz
Chalut o/
un_pogaz is on a distinguished road
 
un_pogaz's Avatar
 
Posts: 74
Karma: 50
Join Date: Dec 2017
Device: Kobo
[BUG] Embed metadata

I encountered a bug when I wanted to embed metadata.
Spoiler:
calibre, version 3.46.0
WARNING: Failed for some files: Failed to embed metadata into some book files. Click "Show details" for details.

The EPUB format of Alexandra-Ivy-Gardiens-de-léternité-T8.5-Luc:

Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 447, in set_file_type_metadata
File "site-packages\calibre\customize\builtins.py", line 467, in set_metadata
File "site-packages\calibre\ebooks\metadata\epub.py", line 301, in set_metadata
File "site-packages\calibre\ebooks\metadata\opf.py", line 113, in set_metadata
File "site-packages\calibre\ebooks\metadata\opf.py", line 100, in set_metadata_opf3
File "site-packages\calibre\ebooks\metadata\opf3.py", line 1034, in apply_metadata
File "site-packages\calibre\ebooks\metadata\opf3.py", line 385, in set_title
File "src/lxml/lxml.etree.pyx", line 1523, in lxml.etree._Element.makeelement (src\lxml\lxml.etree.c:58826)
File "src/lxml/apihelpers.pxi", line 105, in lxml.etree._makeElement (src\lxml\lxml.etree.c:17761)
File "src/lxml/apihelpers.pxi", line 1630, in lxml.etree._tagValidOrRaise (src\lxml\lxml.etree.c:34314)
ValueError: Invalid tag name u'dc:title'

Apparently, a guy managed to make an ePub without <title> (and quite a few errors in the OPF)
Calibre does not seem to be able to manage this absence (which was totally unlikely).
un_pogaz is offline   Reply With Quote
Old 08-10-2019, 12:26 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 23,393
Karma: 25446786
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT, Galaxy Tab A, Kobo Aura2
I don't think this is about the <title> tag

The OPF is bad
Code:
<dc:title>This one is Dangerous when missing</dc:title>
theducks is offline   Reply With Quote
Advert
Old 08-10-2019, 12:46 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,687
Karma: 12513052
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...ad753b77132e49
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Writer Plugin] Embed Comic Metadata dickloraine Plugins 93 08-05-2018 06:01 PM
Where is the embed metadata command? SCOTTMD43 Calibre 4 05-04-2016 07:32 AM
embed metadata option mytrivo Library Management 3 06-24-2015 01:34 AM
Troubleshooting Pdf Embed Bug fraincs Amazon Kindle 5 02-04-2011 09:49 AM
Request enTourage should embed some automatic bug report function henry_moh enTourage Archive 0 11-05-2010 02:06 PM


All times are GMT -4. The time now is 05:29 AM.


MobileRead.com is a privately owned, operated and funded community.