From: Oleg Broytman Date: Tue, 5 Mar 2024 20:22:39 +0000 (+0300) Subject: Fix(Robots/bkmk_robot_base): Pass query part X-Git-Tag: 5.2.5~1 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f6ecaa9dd00b1b897c3c9ffa1a655864f24b7af8;p=bookmarks_db.git Fix(Robots/bkmk_robot_base): Pass query part --- diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index c71ce22..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)