mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix: We need to pass &face=back to API in order to download backface
images correctly.
This commit is contained in:
@@ -94,6 +94,7 @@ public class GuiDownloadPicturesHQ extends GuiDownloadService {
|
|||||||
cardname = cardname.replace("'", "");
|
cardname = cardname.replace("'", "");
|
||||||
String scryfallurl = ForgeConstants.URL_PIC_SCRYFALL_DOWNLOAD + "named?fuzzy=" + cardname;
|
String scryfallurl = ForgeConstants.URL_PIC_SCRYFALL_DOWNLOAD + "named?fuzzy=" + cardname;
|
||||||
if(!setCode.equals("???")) scryfallurl += "&set=" + setCode.toLowerCase();
|
if(!setCode.equals("???")) scryfallurl += "&set=" + setCode.toLowerCase();
|
||||||
|
if(backFace) scryfallurl += "&face=back";
|
||||||
scryfallurl += "&format=image";
|
scryfallurl += "&format=image";
|
||||||
|
|
||||||
downloads.put(destPath, scryfallurl);
|
downloads.put(destPath, scryfallurl);
|
||||||
|
|||||||
Reference in New Issue
Block a user