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
@ -839,7 +839,7 @@ class GetAddons(QDialog):
|
|||||||
def download_addon(client: HttpClient, id: int) -> Union[DownloadOk, DownloadError]:
|
def download_addon(client: HttpClient, id: int) -> Union[DownloadOk, DownloadError]:
|
||||||
"Fetch a single add-on from AnkiWeb."
|
"Fetch a single add-on from AnkiWeb."
|
||||||
try:
|
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:
|
if resp.status_code != 200:
|
||||||
return DownloadError(status_code=resp.status_code)
|
return DownloadError(status_code=resp.status_code)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user