Skip to content

Commit

Permalink
you can now download 4k images from ArtStation
Browse files Browse the repository at this point in the history
  • Loading branch information
sentouki committed Jul 10, 2020
1 parent f77533a commit 8d0ee48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ArtAPI/ArtStationAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ private async Task GetAssets(string hash_id, string name)
{
ImagesToDownload.Add(new ImageModel()
{
Url = image["image_url"].ToString(),
Url = image["image_url"].ToString().Replace("/large/", "/4k/")
.Replace("/covers/", "/images/")
.Replace("/video_clips/", "/images/")
.Replace("/videos/","/images/")
.Replace("/panos/", "/images/"), // workaround to download 4k images, maybe there's a better way, I might change this later
Name = name,
ID = image["id"].ToString()
});
Expand Down

0 comments on commit 8d0ee48

Please sign in to comment.