This commit is contained in:
Kovid Goyal 2014-04-17 20:37:29 +05:30
parent c2dc54c4da
commit a22f9bb9a8

View file

@ -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)