From 6fe6a9e5973bc2cc9bd826ef5ea5f4f559d84323 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 19 Jan 2020 13:43:16 +1000 Subject: [PATCH] send point version when downloading AnkiWeb will return a 404 if add-on does not support that version --- qt/aqt/addons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/addons.py b/qt/aqt/addons.py index cace11b7e..6d393dc71 100644 --- a/qt/aqt/addons.py +++ b/qt/aqt/addons.py @@ -839,7 +839,7 @@ class GetAddons(QDialog): def download_addon(client: HttpClient, id: int) -> Union[DownloadOk, DownloadError]: "Fetch a single add-on from AnkiWeb." try: - resp = client.get(aqt.appShared + f"download/{id}?v=2.1") + resp = client.get(aqt.appShared + f"download/{id}?v=2.1&p={pointVersion}") if resp.status_code != 200: return DownloadError(status_code=resp.status_code)