From 7dc25633900f2b24f710976ec610261c60066118 Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Sat, 12 Nov 2011 00:52:04 +0100 Subject: [PATCH] sets.xml updated; don't try to retrieve empty picture urls --- cockatrice/src/carddatabase.cpp | 6 ++++-- oracle/sets.xml | 22 +++++++++++++++++----- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/cockatrice/src/carddatabase.cpp b/cockatrice/src/carddatabase.cpp index d806c8e7..96918984 100644 --- a/cockatrice/src/carddatabase.cpp +++ b/cockatrice/src/carddatabase.cpp @@ -141,9 +141,11 @@ void PictureLoader::startNextPicDownload() QString picUrl; if (cardBeingDownloaded.getStripped()) picUrl = cardBeingDownloaded.getCard()->getPicURLSt(cardBeingDownloaded.getSetName()); - else if (cardBeingDownloaded.getHq()) + else if (cardBeingDownloaded.getHq()) { picUrl = cardBeingDownloaded.getCard()->getPicURLHq(cardBeingDownloaded.getSetName()); - else + if (picUrl.isEmpty()) + picUrl = cardBeingDownloaded.getCard()->getPicURL(cardBeingDownloaded.getSetName()); + } else picUrl = cardBeingDownloaded.getCard()->getPicURL(cardBeingDownloaded.getSetName()); QUrl url(picUrl); diff --git a/oracle/sets.xml b/oracle/sets.xml index 79346623..81e272e1 100644 --- a/oracle/sets.xml +++ b/oracle/sets.xml @@ -1,8 +1,8 @@ http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=!cardid!&type=card - http://mtgpics.chutography.com/!set!/!name!.full.jpg - http://mtgpics.chutography.com/!set!/!name!.jpg + + http://gatherer.wizards.com/Pages/Search/Default.aspx?output=spoiler&method=text&set=["!longname!"]&special=true ARB @@ -61,23 +61,35 @@ Dissension - DVD + DDH + Duel Decks: Ajani vs. Nicol Bolas + + + DDC Duel Decks: Divine vs. Demonic - DDE + DDF Duel Decks: Elspeth vs. Tezzeret EVG Duel Decks: Elves vs. Goblins + + DDD + Duel Decks: Garruk vs. Liliana + DD2 Duel Decks: Jace vs. Chandra - DDD + DDG + Duel Decks: Knights vs. Dragons + + + DDE Duel Decks: Phyrexia vs. the Coalition