mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
* Card download - Fixed a bug that prevented to download some cards with blanks in names from MtgImageSource.
This commit is contained in:
parent
310347fc8b
commit
0d31e319c5
1 changed files with 3 additions and 2 deletions
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
package org.mage.plugins.card.dl.sources;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import mage.cards.SplitCard;
|
||||
import org.mage.plugins.card.images.CardDownloadData;
|
||||
|
||||
|
|
@ -60,7 +61,7 @@ public class MtgImageSource implements CardImageSource {
|
|||
if (card.isSplitCard()) {
|
||||
url.append(card.getDownloadName().replaceAll(" // ", ""));
|
||||
} else {
|
||||
url.append(card.getDownloadName());
|
||||
url.append(card.getDownloadName().replaceAll(" ", "%20"));
|
||||
}
|
||||
|
||||
if (card.isTwoFacedCard()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue