Fix: We need to pass &face=back to API in order to download backface

images correctly.
This commit is contained in:
Peter
2019-07-30 14:24:54 +02:00
parent 3c23019577
commit b23f3d9acc

View File

@@ -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);