From: Oleg Broytman Date: Tue, 4 Mar 2008 10:52:17 +0000 (+0000) Subject: application/xhtml+xml is HTML, too. X-Git-Tag: v4.5.3~178 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=39c6f1c85c93c021fca528bb1a5cca91f53c196c;p=bookmarks_db.git application/xhtml+xml is HTML, too. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@198 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index ebb3f8b..0dee51e 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -164,7 +164,7 @@ class robot_simple(Robot): except (ValueError, IndexError): charset = None self.log(" no charset in Content-Type header") - if content_type == "text/html": + if content_type in ("text/html", "application/xhtml+xml"): parser = parse_html(fname, charset, self.log) bookmark.real_title = parser.title if parser.refresh: