Add a warning for Scryfall API limit.

This commit is contained in:
Lukas Brübach 2025-01-24 11:57:17 +01:00
parent 2f9bea7834
commit 718dd62927

View file

@ -170,6 +170,10 @@ void PictureLoaderWorkerWork::picDownloadFinished(QNetworkReply *reply)
return;
}
if (statusCode == 429) {
qWarning() << "Scryfall API limit reached!";
}
// peek is used to keep the data in the buffer for use by QImageReader
const QByteArray &picData = reply->peek(reply->size());