]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/parse_html_htmlparser.py
Lookup title in html if not found in head.
[bookmarks_db.git] / Robots / parse_html_htmlparser.py
index df37f752d86a3a55b7057b5357daf57e1c8efbe6..351fc749c9941d4532d48b6720139fdb634fbd46 100644 (file)
@@ -90,4 +90,7 @@ def parse_html(filename, charset=None, log=None):
    except (HTMLParseError, HTMLHeadDone):
       pass
 
+   if parser.title is None:
+      return None
+
    return parser