Skip to content

Commit

Permalink
make sure to unite url properly
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Feb 24, 2024
1 parent 0e2aab9 commit cd4eb2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hordelib/model_manager/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,10 @@ def download_model(
if "file_url" in download[i]:
download_url = download[i]["file_url"]
if self._civitai_api_token and self.is_model_url_from_civitai(download_url):
download_url += f"?token={self._civitai_api_token}"
if "?" not in download_url:
download_url += f"?token={self._civitai_api_token}"
else:
download_url += f"&token={self._civitai_api_token}"
if "file_name" in download[i]:
download_name = download[i]["file_name"]
if "file_path" in download[i]:
Expand Down

0 comments on commit cd4eb2a

Please sign in to comment.