mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-02 15:45:41 +01:00
...
This commit is contained in:
parent
c2dc54c4da
commit
a22f9bb9a8
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ def add_words_from_text(node, attr, words, file_name, locale):
|
|||
def read_words_from_opf(root, words, file_name, book_locale):
|
||||
for tag in root.xpath('//*[namespace-uri()="%s"]' % OPF_NAMESPACES['dc']):
|
||||
tagname = barename(tag.tag)
|
||||
if not tag.text or tagname in {'identifier', 'language'}:
|
||||
if not tag.text or tagname in {'identifier', 'language', 'date'}:
|
||||
continue
|
||||
add_words_from_text(tag, 'text', words, file_name, book_locale)
|
||||
add_words_from_attr(tag, _opf_file_as, words, file_name, book_locale)
|
||||
|
|
|
|||
Loading…
Reference in a new issue