mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
send point version when downloading
AnkiWeb will return a 404 if add-on does not support that version
This commit is contained in:
parent
66714260a3
commit
6fe6a9e597
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue