diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-02 14:47:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 14:47:36 +0100 |
commit | a178b52390374b3e275c578acf68ab4f38383ddf (patch) | |
tree | 4d3fb874d1a0cf5692ec87cf82004546d64a8159 | |
parent | 56e844ce95833424b7add9df6afebc1b33d3ff0e (diff) | |
parent | 576de1aa18f76630fdf46ab248bd689786f1d161 (diff) | |
download | qutebrowser-a178b52390374b3e275c578acf68ab4f38383ddf.tar.gz qutebrowser-a178b52390374b3e275c578acf68ab4f38383ddf.zip |
Merge pull request #6006 from geeseven/bookmark-fix
userscript Nextcloud bookmark URL check fix
-rwxr-xr-x | misc/userscripts/add-nextcloud-bookmarks | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/userscripts/add-nextcloud-bookmarks b/misc/userscripts/add-nextcloud-bookmarks index 4e66620dc..5da887086 100755 --- a/misc/userscripts/add-nextcloud-bookmarks +++ b/misc/userscripts/add-nextcloud-bookmarks @@ -120,14 +120,16 @@ tags = settings["tags"].split(",") QUTE_URL = environ["QUTE_URL"] api_url = settings["host"] + "/index.php/apps/bookmarks/public/rest/v2/bookmark" -headers = {"Content-Type": "application/json"} auth = HTTPBasicAuth(settings["user"], settings["password"]) +headers = {"Content-Type": "application/json"} +params = {"url": QUTE_URL} # check if there is already a bookmark for the URL r = get( - "{}?url={}".format(api_url, QUTE_URL), + api_url, auth=auth, headers=headers, + params=params, timeout=(3.05, 27), ) if r.status_code != 200: |