X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fparse_html_beautifulsoup.py;h=e03dfce99faa55b980e21a75e38249790d50c0a7;hb=6688a7206d9b545e52cfbc4cf2adae691a1a0933;hp=d3778fbbfc55d529aa03f88c7d094c7bc22e07d3;hpb=92f5d0b12ed82b7ac51acfa074de7bfad14c1084;p=bookmarks_db.git diff --git a/Robots/parse_html_beautifulsoup.py b/Robots/parse_html_beautifulsoup.py index d3778fb..e03dfce 100644 --- a/Robots/parse_html_beautifulsoup.py +++ b/Robots/parse_html_beautifulsoup.py @@ -105,8 +105,8 @@ def parse_html(filename, charset=None, log=None): else: meta_charset = False - if charset or meta_charset: - title = title.encode(charset or meta_charset) + if _charset or meta_charset: + title = title.encode(_charset or meta_charset) meta = head.find(_find_refresh, recursive=False) if meta: