]> git.phdru.name Git - bookmarks_db.git/commitdiff
application/xhtml+xml is HTML, too.
authorOleg Broytman <phd@phdru.name>
Tue, 4 Mar 2008 10:52:17 +0000 (10:52 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 4 Mar 2008 10:52:17 +0000 (10:52 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@198 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/bkmk_rsimple.py

index ebb3f8b2b895f26576174f10c16115d10cabb72d..0dee51e8837ae3db9922704d78bd3e08b7325df7 100644 (file)
@@ -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: