X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_robot_base.py;h=e41dc408545eab72c1941ff735121ee6d43d3a0c;hb=cac6843d0987a11020e2ec606adccc95d89a5f71;hp=728fe46f557d6084e56ed5466f15769ef86401b8;hpb=153e154fff8170da7e5f88c4301bf128ff2598eb;p=bookmarks_db.git diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index 728fe46..e41dc40 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -5,7 +5,7 @@ This file is a part of Bookmarks database and Internet robot. """ __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design" +__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design" __license__ = "GNU GPL" __all__ = ['robot_base', 'get_error'] @@ -172,12 +172,12 @@ class robot_base(Robot): else: content_type = icon_headers["Content-Type"] if content_type.startswith("application/") \ - or content_type.startswith("image/") \ - or content_type.startswith("text/plain"): + or content_type.startswith("image/") \ + or content_type.startswith("text/plain"): bookmark.icon_href = icon_url self.log(" got icon : %s" % content_type) if content_type.startswith("application/") \ - or content_type.startswith("text/plain"): + or content_type.startswith("text/plain"): self.log(" non-image content type, assume x-icon") content_type = 'image/x-icon' bookmark.icon = "data:%s;base64,%s" % (content_type, b64encode(icon_data))