X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=parse_html%2Fbkmk_ph_htmlparser.py;h=70cba32d9073e2aa8f15389f69f8636eb0061b6f;hb=d5365dbb38d672f256a5e7a2f949c789bc5793ce;hp=45e89f5119817787b0b926c7f43627a7dc22e7dd;hpb=c88cb7a75e7caf1d67466cfa107981d95115fa0c;p=bookmarks_db.git diff --git a/parse_html/bkmk_ph_htmlparser.py b/parse_html/bkmk_ph_htmlparser.py index 45e89f5..70cba32 100644 --- a/parse_html/bkmk_ph_htmlparser.py +++ b/parse_html/bkmk_ph_htmlparser.py @@ -49,8 +49,9 @@ class HTMLParser(_HTMLParser): try: # extract charset from "text/html; foo; charset=UTF-8, bar; baz;" self.charset = content.lower().split('charset=')[1].split(';')[0].split(',')[0] - self.meta_charset = 1 # Remember that the charset was retrieved from - # META tag, not from the Content-Type header + # Remember that the charset was retrieved from + # META tag, not from the Content-Type header + self.meta_charset = 1 except IndexError: pass