Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
7dc25633
Commit
7dc25633
authored
Nov 12, 2011
by
Max-Wilhelm Bruker
Browse files
sets.xml updated; don't try to retrieve empty picture urls
parent
632e9bbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
7dc25633
...
...
@@ -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
);
...
...
oracle/sets.xml
View file @
7dc25633
<?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>
DD
E
</name>
<name>
DD
F
</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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment