From f6ecaa9dd00b1b897c3c9ffa1a655864f24b7af8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 5 Mar 2024 23:22:39 +0300 Subject: [PATCH] Fix(Robots/bkmk_robot_base): Pass query part --- Robots/bkmk_robot_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.5