"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['robot_base', 'get_error']
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))
"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['storage_flad']
Icon: %s
Charset: %s
""" % (level+1, b.name, b.href, b.add_date, b.last_visit, b.last_modified,
- b.keyword, b.comment.replace('\n', "\\n"),
- b.icon_href or '', b.icon or '', b.charset or ''))
+ b.keyword, b.comment.replace('\n', "\\n"),
+ b.icon_href or '', b.icon or '', b.charset or ''))
def ruler(self, r, level):
self.outfile.write("\nLevel: %s\nRuler: YES\n" % (level+1))
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design"
__license__ = "GNU GPL"
pass
if report_stats:
- print("Broytman check_urls, Copyright (C) 1997-2017 PhiloSoft Design")
+ print("Broytman check_urls, Copyright (C) 1997-2023 PhiloSoft Design")
if args:
sys.stderr.write("check_urls: too many arguments\n")
if object.isBookmark:
href = object.href
if (href.startswith('place:') # Firefox SmartBookmarks
- or '%s' in href): # Bookmark with keyword
+ or '%s' in href): # Bookmark with keyword
log("Skipped %s" % href)
continue