mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Added some sets to the download sources.
This commit is contained in:
parent
cba7da020e
commit
7f4573f8ce
4 changed files with 7 additions and 8 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package org.mage.plugins.card.dl.sources;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
|
|
@ -18,7 +17,6 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.prefs.Preferences;
|
||||
|
||||
import mage.client.MageFrame;
|
||||
import mage.remote.Connection;
|
||||
import mage.remote.Connection.ProxyType;
|
||||
|
|
@ -232,6 +230,8 @@ public enum MythicspoilerComSource implements CardImageSource {
|
|||
supportedSets.add("RIX");
|
||||
supportedSets.add("DOM");
|
||||
supportedSets.add("BBD");
|
||||
supportedSets.add("M19");
|
||||
supportedSets.add("C18");
|
||||
// supportedSets.add("CM2");
|
||||
|
||||
sets = new LinkedHashMap<>();
|
||||
|
|
@ -329,7 +329,7 @@ public enum MythicspoilerComSource implements CardImageSource {
|
|||
}
|
||||
|
||||
private Map<String, String> getSetLinksFromPage(String cardSet, Set<String> aliasesStart, Preferences prefs,
|
||||
ProxyType proxyType, String baseUrl, String pageUrl) throws IOException {
|
||||
ProxyType proxyType, String baseUrl, String pageUrl) throws IOException {
|
||||
Map<String, String> pageLinks = new HashMap<>();
|
||||
|
||||
String urlDocument;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import java.util.LinkedHashSet;
|
|||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import mage.client.dialog.PreferencesDialog;
|
||||
import org.mage.plugins.card.images.CardDownloadData;
|
||||
|
||||
|
|
@ -227,7 +226,8 @@ public enum ScryfallImageSource implements CardImageSource {
|
|||
supportedSets.add("A25");
|
||||
supportedSets.add("DOM");
|
||||
supportedSets.add("BBD");
|
||||
// supportedSets.add("CM2");
|
||||
supportedSets.add("C18");
|
||||
supportedSets.add("CM2");
|
||||
supportedSets.add("M19");
|
||||
}
|
||||
|
||||
|
|
@ -240,7 +240,6 @@ public enum ScryfallImageSource implements CardImageSource {
|
|||
// loc example: https://api.scryfall.com/cards/xln/121/ru?format=image
|
||||
|
||||
// TODO: do not use API at all? It's can help with scryfall request limits (1 request instead 2)
|
||||
|
||||
String baseUrl = null;
|
||||
String alternativeUrl = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ public enum WizardCardsImageSource implements CardImageSource {
|
|||
supportedSets.add("M19"); // Core 2019
|
||||
// supportedSets.add("GRN"); // Guilds of Ravnica
|
||||
// supportedSets.add("RNA"); // Ravnica Allegiance
|
||||
// supportedSets.add("C18"); // Commander 2018
|
||||
supportedSets.add("C18"); // Commander 2018
|
||||
|
||||
sets = new HashMap<>();
|
||||
setsAliases = new HashMap<>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue