From 39c6f1c85c93c021fca528bb1a5cca91f53c196c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 4 Mar 2008 10:52:17 +0000 Subject: [PATCH] application/xhtml+xml is HTML, too. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@198 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/bkmk_rsimple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5