mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 00:47:48 -07:00
Repeatly download text spoiler until a valid XML document is received
This commit is contained in:
@@ -296,7 +296,8 @@ void OracleImporter::httpRequestFinished(int requestId, bool error)
|
||||
buffer->seek(0);
|
||||
buffer->close();
|
||||
int cards = importTextSpoiler(set, buffer->data());
|
||||
++setIndex;
|
||||
if (cards > 0)
|
||||
++setIndex;
|
||||
|
||||
if (setIndex == setsToDownload.size()) {
|
||||
emit setIndexChanged(cards, setIndex, QString());
|
||||
|
||||
Reference in New Issue
Block a user