mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[civitai] fix 'model' file download URLs for tRPC API
This commit is contained in:
parent
1824267447
commit
a78f33d0fc
@ -201,7 +201,9 @@ class CivitaiModelExtractor(CivitaiExtractor):
|
|||||||
"file" : file,
|
"file" : file,
|
||||||
"filename" : file["name"],
|
"filename" : file["name"],
|
||||||
"extension": "bin",
|
"extension": "bin",
|
||||||
"url" : file["downloadUrl"],
|
"url" : file.get("downloadUrl") or
|
||||||
|
"{}/api/download/models/{}".format(
|
||||||
|
self.root, version["id"]),
|
||||||
"_http_headers" : {
|
"_http_headers" : {
|
||||||
"Authorization": self.api.headers.get("Authorization")},
|
"Authorization": self.api.headers.get("Authorization")},
|
||||||
"_http_validate": self._validate_file_model,
|
"_http_validate": self._validate_file_model,
|
||||||
|
Loading…
Reference in New Issue
Block a user