X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_robot_base.py;h=3fd567cda2f0c232017d910e4a66526efcec9d75;hb=refs%2Ftags%2F5.3.0;hp=e41b1a660574631354f77b44340a40efea7f285e;hpb=d454f1d6aa7f2430d502d847693515f69489c66c;p=bookmarks_db.git diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index e41b1a6..3fd567c 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -82,7 +82,10 @@ class robot_base(Robot): url_type, netloc, url_path, query, url_tag = split_results url_host = split_results.hostname - url = "%s://%s%s" % (url_type, url_host, url_path) + if query: + url = "%s://%s%s?%s" % (url_type, url_host, url_path, query) + else: + url = "%s://%s%s" % (url_type, url_host, url_path) error, redirect_code, redirect_to, headers, content = \ self.get(bookmark, url, True) @@ -179,9 +182,10 @@ class robot_base(Robot): if icons[icon_url]: bookmark.icon_href = icon_url content_type, bookmark.icon = icons[icon_url] - self.log(" cached icon: %s" % content_type) + self.log(" cached icon : %s" + % content_type) else: - self.log(" cached icon: no icon") + self.log(" cached icon : no icon") elif icon_url.startswith('data:'): content_type, icon_data = \ icon_url[len('data:'):].split(',', 1)