Skip to content

Commit

Permalink
better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
not-lain committed Nov 25, 2024
1 parent cda39c8 commit 25b8d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loadimg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def download_image(url: str):
url += "?raw=true"

# Google Drive URL
elif starts_with("drive", url) and "uc?id=" not in url:
elif starts_with("drive", url) and ("uc?id=" not in url):
if "/view" in url or url.endswith("/"):
url = "/".join(url.split("/")[:-1])
url = "https://drive.google.com/uc?id=" + url.split("/")[-1]
Expand Down

0 comments on commit 25b8d34

Please sign in to comment.