X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8a8f5dd4b7f9971510d624d61455baf0bde4221c..276656dcc680e1a35103d310dea046152ddc3785:/apps/search/index.py?ds=sidebyside diff --git a/apps/search/index.py b/apps/search/index.py index 29e41d222..307376de9 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -25,6 +25,7 @@ import re import errno from librarian import dcparser from librarian.parser import WLDocument +from lxml import etree import catalogue.models from multiprocessing.pool import ThreadPool from threading import current_thread @@ -401,6 +402,8 @@ class Index(BaseIndex): if header.tag in self.skip_header_tags: continue + if header.tag is etree.Comment: + continue # section content content = []