X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_rsimple.py;h=1842b4d7ff94e73327f127afa2b71a74c61f7ed8;hb=caa777b87bd46efba408d5fcf28b690bd28fe30b;hp=63c0b4c173b120e13195185ac58450f12d48cec6;hpb=55ee943b3ef63d03826318d36fd964d182c3c322;p=bookmarks_db.git diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index 63c0b4c..1842b4d 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -90,6 +90,8 @@ class robot_simple(Robot): try: try: self.start = int(time.time()) + bookmark.icon = None + url_type, url_rest = urllib.splittype(bookmark.href) url_host, url_path = urllib.splithost(url_rest) url_path, url_tag = urllib.splittag(url_path) @@ -183,8 +185,6 @@ class robot_simple(Robot): content_type = headers["Content-Type"] if content_type.startswith("image/"): bookmark.icon = "data:%s;base64,%s" % (content_type, b64encode(icon)) - else: - bookmark.icon = None except KeyError: pass