sets.xml updated; don't try to retrieve empty picture urls
This commit is contained in:
parent
632e9bbff3
commit
7dc2563390
2 changed files with 21 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cockatrice_setdatabase version="20110126">
|
||||
<picture_url>http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=!cardid!&type=card</picture_url>
|
||||
<picture_url_hq>http://mtgpics.chutography.com/!set!/!name!.full.jpg</picture_url_hq>
|
||||
<picture_url_st>http://mtgpics.chutography.com/!set!/!name!.jpg</picture_url_st>
|
||||
<!-- <picture_url_hq>http://mtgpics.chutography.com/!set!/!name!.full.jpg</picture_url_hq>-->
|
||||
<!-- <picture_url_st>http://mtgpics.chutography.com/!set!/!name!.jpg</picture_url_st>-->
|
||||
<set_url>http://gatherer.wizards.com/Pages/Search/Default.aspx?output=spoiler&method=text&set=["!longname!"]&special=true</set_url>
|
||||
<set import="1">
|
||||
<name>ARB</name>
|
||||
|
@ -61,23 +61,35 @@
|
|||
<longname>Dissension</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>DVD</name>
|
||||
<name>DDH</name>
|
||||
<longname>Duel Decks: Ajani vs. Nicol Bolas</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>DDC</name>
|
||||
<longname>Duel Decks: Divine vs. Demonic</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>DDE</name>
|
||||
<name>DDF</name>
|
||||
<longname>Duel Decks: Elspeth vs. Tezzeret</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>EVG</name>
|
||||
<longname>Duel Decks: Elves vs. Goblins</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>DDD</name>
|
||||
<longname>Duel Decks: Garruk vs. Liliana</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>DD2</name>
|
||||
<longname>Duel Decks: Jace vs. Chandra</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>DDD</name>
|
||||
<name>DDG</name>
|
||||
<longname>Duel Decks: Knights vs. Dragons</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
<name>DDE</name>
|
||||
<longname>Duel Decks: Phyrexia vs. the Coalition</longname>
|
||||
</set>
|
||||
<set import="1">
|
||||
|
|
Loading…
Reference in a new issue