mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-07 16:53:00 -07:00
Add a warning for Scryfall API limit.
This commit is contained in:
parent
2f9bea7834
commit
718dd62927
1 changed files with 4 additions and 0 deletions
|
|
@ -170,6 +170,10 @@ void PictureLoaderWorkerWork::picDownloadFinished(QNetworkReply *reply)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (statusCode == 429) {
|
||||||
|
qWarning() << "Scryfall API limit reached!";
|
||||||
|
}
|
||||||
|
|
||||||
// peek is used to keep the data in the buffer for use by QImageReader
|
// peek is used to keep the data in the buffer for use by QImageReader
|
||||||
const QByteArray &picData = reply->peek(reply->size());
|
const QByteArray &picData = reply->peek(reply->size());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue